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