954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

mail function issue in php

hi friends

I am using mail function to send message one user to another user in php application .

When i send the mail i got the html code with mail content .

example
X-Mailer: PHP/4.3.9
Message-Id: <[EMAIL="200707242342454.CDF209301FD@mail.xxxxxxxxx.com"]200707242342454.CDF209301FD@mail.xxxxxxxxx.com[/EMAIL]>
Date: Wed, 18 Jul 2007 00:24:54 -0700 (MST)

Name : RAM

Message :Test

how to solve the issue
please help me

vssp
Junior Poster
199 posts since Jul 2006
Reputation Points: 5
Solved Threads: 5
 

You can use

mail($recipient, $subject, $message,  "From:". $sender."\nContent-Type: text/html; charset=iso-8859-1");


-Mitko Kostov

MitkOK
Junior Poster
142 posts since Jul 2007
Reputation Points: 59
Solved Threads: 12
 

Grate excellent
super

vssp
Junior Poster
199 posts since Jul 2006
Reputation Points: 5
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You