I am using Zend Framework to send mail.
It's doing something very odd, the content type, content dispostion, MIME version and content type encoding are all showing up in the header section (under the subject) of the email in GMail and in Outlook.
The content of the email was also being included twice in the email, once as plain text and once as HTML. I stopped this by just using setBodyText() instead of using setBodyHtml() too. I had seen somewhere that you can use both. Now I just use setBodyText() like this
$mail = new Zend_Mail('utf-8');
$mail->addTo("[email protected]");
$mail->setSubject("Registration info");
$mail->setFrom('[email protected]', "A Name");
$mail->setBodyText($this->view->render('emails/register.phtml'));
$mail->send();
Any ideas anyone on what is going on here?
Thanks for your time