本文整理汇总了PHP中Swift_Message::getBCC方法的典型用法代码示例。如果您正苦于以下问题:PHP Swift_Message::getBCC方法的具体用法?PHP Swift_Message::getBCC怎么用?PHP Swift_Message::getBCC使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Swift_Message
的用法示例。
在下文中一共展示了Swift_Message::getBCC方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createFromSwiftMessage
/**
* Creates a DmSentMail from a Swift_Message
* @param Swift_Message $message
* @return DmSentMail
*/
public function createFromSwiftMessage(Swift_Message $message)
{
$debug = $message->toString();
if ($attachementPosition = strpos($debug, 'attachment; filename=')) {
$debug = substr($debug, 0, $attachementPosition);
}
return $this->create(array('subject' => $message->getSubject(), 'body' => $message->getBody(), 'from_email' => implode(', ', array_keys((array) $message->getFrom())), 'to_email' => implode(', ', array_keys((array) $message->getTo())), 'cc_email' => implode(', ', array_keys((array) $message->getCC())), 'bcc_email' => implode(', ', array_keys((array) $message->getBCC())), 'reply_to_email' => implode(', ', array_keys((array) $message->getReplyTo())), 'sender_email' => implode(', ', array_keys((array) $message->getSender())), 'debug_string' => $debug));
}
示例2: createFromSwiftMessage
/**
* Creates a DmSentMail from a Swift_Message
* @param Swift_Message $message
* @return DmSentMail
*/
public function createFromSwiftMessage(Swift_Message $message)
{
return $this->create(array('subject' => $message->getSubject(), 'body' => $message->getBody(), 'from_email' => implode(', ', array_keys((array) $message->getFrom())), 'to_email' => implode(', ', array_keys((array) $message->getTo())), 'cc_email' => implode(', ', array_keys((array) $message->getCC())), 'bcc_email' => implode(', ', array_keys((array) $message->getBCC())), 'reply_to_email' => $message->getReplyTo(), 'sender_email' => $message->getSender(), 'debug_string' => $message->toString()));
}