Jump to content


Mail Function

  • Please log in to reply
1 reply to this topic

#1 3s2ng

  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 03 October 2006 - 06:40 PM

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";


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

Content-type: text/html; charset=iso-8859-1

From: admin@yahoo.com

This is the body.

And the from field is "unknown sender"

What is wrong?

Hope you can help me.


#2 Daniel0

  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 03 October 2006 - 06:42 PM

Could you display the entire code? It could be your webmail interface/email program that causes the problem, try with multiple clients.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users