[SOLVED] Cannot set attribute 'name' error
Posted: Fri Jun 01, 2007 11:34 am
When we try to embed an image into an html doc we keep getting a MimeException:
Cannot set attribute 'name' for header 'Content-Type' as the header does not exist.
A snippit of our code is:
We're using the latest build on the download page. Any help would be appreciated!
Thanks.
Cannot set attribute 'name' for header 'Content-Type' as the header does not exist.
A snippit of our code is:
Code: Select all
$message = new Swift_Message($msg->Subject);
...
$EmbeddedFile = new Swift_Message_EmbeddedFile($attachInfo['Data'], $attachInfo['Name'], $attachInfo['Type'], $attachInfo['CID']);
$src = $message->attach($EmbeddedFile);Thanks.