
mwouters - 2010-02-05 14:29:22
Hello,
When I send a message with your class, without an attachment, the mail shows in Thunderbird as html. However as soon as I add:
$mimemail->add_attachment("fpdf/files/filename2.pdf", "vote_".Simplify($title).".pdf");
the mail is shown in text instead of html. The text is taken from the html, because I didn't specify a $mimemail->set_text
A bug?
Here is my code:
$mimemail = new nomad_mimemail();
$mimemail->set_from($a_email, $a_firstname." ".$a_lastname);
$mimemail->set_to($a_email, $a_firstname." ".$a_lastname);
$mimemail->set_subject("Concerning your GPQA review of $title");
$msg_body = '
..my html here..
';
$mimemail->set_html("<HTML><HEAD></HEAD><BODY>$msg_body</BODY></HTML>");
$mimemail->add_attachment("fpdf/files/filename2.pdf", "vote_".Simplify($title).".pdf");
if ($mimemail->send()){
$msend="1";
}
Thanks a lot for any help,
Mark