3s2ng Posted October 3, 2006 Share Posted October 3, 2006 Hello Freaks,I'm having problems using the mail funtion. I want to send an html email to my user. Here is my header and the mail code $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: $admin_email\r\n"; mail("$to",$subject,$str_message,$headers);Is there something wrong on my code? When I run the above code It will send an email but the problem is the body of email look like this[code]Content-type: text/html; charset=iso-8859-1From: [email protected]This is the body.[/code] And the from field is "unknown sender"What is wrong?Hope you can help me.THanksMARK Link to comment https://forums.phpfreaks.com/topic/22901-mail-function/ Share on other sites More sharing options...
Daniel0 Posted October 3, 2006 Share Posted October 3, 2006 Could you display the entire code? It could be your webmail interface/email program that causes the problem, try with multiple clients. Link to comment https://forums.phpfreaks.com/topic/22901-mail-function/#findComment-103268 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.