My code is like this:
Code: Select all
...
$plugin =& new Swift_Plugin_FileEmbedder();
$plugin->setTagDefinition("img", "src", array("gif", "png", "jpg"));
$swift->attachPlugin($plugin, "file_embedder");
$message =& new Swift_Message("Title");
$messageTxt = "text message";
$message->attach(new Swift_Message_Part($messageTxt ));
/*
$content contains the full html page
where images (in the same server) like:
<img src="/full/path/to/image/header.jpg"
*/
$message->attach(new Swift_Message_Part($content 'text/html'));
$swift->send($message, $eMail, $sender);
...
Where i'm wrong?
Tnx