Need to insert some html in a mail($email php generate email -


i insert html in email php file generate after form. here part of email:

mail($email,       "www.icecream-icecream.com",       "thank message,            within 24 hours receive dedicated email. bye",       "from: info@...."    ); 

where can read "thank message..." basic customize html. why? because want insert thai characters without html not send.

thanks if know how it, anyway if don't know. new here.

<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "html email"; $message = "<html><head><title>html email</title></head><body><p></p></body></html>"; // set content-type when sending html email $headers = "mime-version: 1.0" . "\r\n"; $headers .= "content-type:text/html;charset=utf-8" . "\r\n"; // more headers $headers .= 'from: <webmaster@example.com>' . "\r\n"; $headers .= 'cc: myboss@example.com' . "\r\n"; mail($to,$subject,$message,$headers); ?> 

this way may put html in $message. reference


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -