This topic is locked
[SOLVED]

  PHP mail - runner_mail array

3/29/2012 3:24:38 PM
PHPRunner General questions
J
Jeroef author

When trying to send a HTML mail i am missing my å,ä,ö chars. I can't get this to work. I am using this array:



$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'from'=>$from, 'htmlbody' => $msg, 'headers'=>$headers));


and im using this in the email template too:



$headers = "MIME-Version: 1.0" . "\r\n";

$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";


Notice i added headers to the array but now i wonder if PHPrunner is reading it all together. Using only "'body' => $msg," make the email plain text and å ä and ö chars is showing. I have tryed UTF-8 charset too, still same problem.
Hoping someone have a answer out there <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=19311&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />
/Regards Roger

J
Jeroef author 3/29/2012

Problem solved. Using this array makes my å ä ö show.

runner_mail(array('to' => $email, 'subject' => $subject, 'htmlbody' => $message, 'charset' => 'iso-8859-1'));