I have two servers with sites on.
Server one is runing php 4.4.1 and server 2 running 4.3.9
The code lets the useer write and send an html email.
The ones sent from server one arrive as fully formed HTML email, the ones from server two as text only with the html markup at the bottom.
Here's the code
Here's the PHP code:
$mailSettings = array('method' => 'smtp','host' => 'localhost');
$mailHeaders = array('To' => $mailTo,
'From' => $mailSender,
'Subject' => $mailSubject);
$mail_object = Mail::factory($mailSettings['method'],$mailSettings);
if (is_object($mail_object)) {
$mime = new Mail_Mime();
$mime->setTxtBody(strip_tags($mailText));
$mime->setHtmlBody($mailHTML);
$message = $mime->get();
$mail_headers = $mime->headers($mail_headers);
$mail_object->send($mailTo, $mailHeaders, $message);
}
This one has got me scratching my head - any suggestions ?
G.
😕