I'm just trying to get my multi-page base64 encoded emails and send via swiftmail. Here is the code that I still have:
$message = Swift_Message::newInstance("Email Template Test")
->setBoundary($boundary)
->setFrom(array('no-reply@domain.net' => 'Mailer Service'))
->setTo(array("a@d.com","a@b.com"))
->setBody($plaintext)
->addPart($htmlmail,"text/html");
$headers = $message->getHeaders();
$headers->addTextHeader('Content-Transfer-Encoding','base64');
$contenttype = $message->getHeaders()->get('Content-Type');
$contenttype->setValue('multipart/alternative');
As far as I can see from the documentation (which I don't find too clear), the heading Content-Transfer-Encodingis a text heading, so I should be able to set it as above. Before that, I started displaying all current headers, but was Content-Transfer-Encodingnot listed there, so I had to install it. Therefore, in the above code, I tried to install it.
, , , , . , $plaintext base64_encode($plaintext), . >