File Embedder Problem
Posted: Tue Feb 26, 2008 6:28 pm
Hi everyone ... i'm using swift for long time .. but when i tryed to make automatic embedder work ... i got problem ..
its simple ignore the plugin and still show image in body and link "click here to activate"
tested with latest v3 and no work !
ideas ? thx
Code: Select all
$myHTMLbody = ' <img width="136" height="160" alt="" src="/imagens/sony-television_pop.jpg" /> <br /> <img src="http://forums.devnetwork.net/styles/subsilver2/imageset/site_logo.gif">
<br />
<br />
testing';
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
require_once "lib/Swift/Plugin/FileEmbedder.php";
$swift =& new Swift(new Swift_Connection_SMTP("localhost"));
$plugin =& new Swift_Plugin_FileEmbedder();
//Attach the plugin
$swift->attachPlugin($plugin, "file_embedder");
$message =& new Swift_Message($mysubject);
$message->attach(new Swift_Message_Part($myHTMLbody, 'text/html'));
$swift->send($message, 'myemail@gmail.com', 'myemail@gmail.com');
its simple ignore the plugin and still show image in body and link "click here to activate"
tested with latest v3 and no work !
ideas ? thx