/** * @return \Swift_Message */ public static function getValid() { $message = new \Swift_Message(); $message->setFrom(MailWrapperTestBootstrap::$from); $message->addTo(MailWrapperTestBootstrap::$toAddresses[0]); $message->addTo(MailWrapperTestBootstrap::$toAddresses[1]); $message->addCC(MailWrapperTestBootstrap::$ccAddresses[0]); $message->addCC(MailWrapperTestBootstrap::$ccAddresses[1]); $message->addBCC(MailWrapperTestBootstrap::$bccAddresses[0]); $message->addBCC(MailWrapperTestBootstrap::$bccAddresses[1]); $message->addReplyTo(MailWrapperTestBootstrap::$alternate); $message->setSubject(MailWrapperTestBootstrap::$subject); $message->setBody(MailWrapperTestBootstrap::$contentText); $message->addPart(MailWrapperTestBootstrap::$contentHtml, 'text/html'); return $message; }