/**
  * {@inheritdoc}
  */
 public function addPart(Email $email, EmailPart $part)
 {
     $addresses = $part->getAddresses();
     $email->setTo($addresses);
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function addPart(Email $email, EmailPart $part)
 {
     $subject = $this->resolveSubject($part);
     $email->setSubject($subject);
 }
示例#3
0
 /**
  * {@inheritdoc}
  */
 public function addPart(Email $email, EmailPart $part)
 {
     $address = $part->getAddress();
     $email->setBounce($address);
 }
示例#4
0
 /**
  * {@inheritdoc}
  */
 public function addPart(Email $email, EmailPart $part)
 {
     $body = $this->resolveBody($part);
     $contentType = $part->getContentType();
     $email->addMessage(new EmailMessage($contentType, $body));
 }