Problem is...because I'm not actually sending the email at this point, I don't need the connection classes...something like this:
Code: Select all
$message = new Swift_Message($subject, $content);
$message->setReturnPath('bounce@domain.com');
$message->setContentType('text/html');
$address = new Swift_Address(
'myemail@domain.com',
'My Company Name'
);Basically I need to cache the entire email in it's most completed form without sending...is it possible to compile/build a complete email with psuedo-headers an all??? Does Swift send headers directly using header() when it's prepared an email? Anyway to capture the email using output buffering perhaps - and just disable the actual sending???