avoid display button in Gmail
Posted: Fri Apr 04, 2008 9:35 am
Hi, I'm in trouble with the file_embedder plugin.
My code is like this:
It works fine in all email clients, but i've display problems in Gmail, such as the "Display Message" button.
Where i'm wrong?
Tnx
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