Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
PHP Mail problem
Name: chitvan Date: May 29, 2007 at 05:26:31 Pacific OS: Linux CPU/Ram: 256 Product: intel
In Gmail I am receiving the message in proper form. but in our server I am receiving it as unnamed [text\html] and I need to download it or open it to see the message.
Kindly please let me know what could be the problem.
Name: Michael J (by mjdamato) Date: May 29, 2007 at 06:38:24 Pacific
Reply:
I found the below code in the manual for the mail() function on php.net.
I differences I notice are that it uses a \r at the end of each line and that the "t" in "type" is lower-case. Try those changes and see what happens.
// To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
Michael J
0
Response Number 2
Name: chitvan Date: May 29, 2007 at 23:31:51 Pacific
Reply:
Thanks for the help but this did not worked. With my code i am able to receive the mails in proper format in gmail accounts but as soon as apply "\r\n" instaed of "\n" the mail in gmail also get html tags in it.
Summary: I have a problem sending mails using the PHP mail() function. It usually sends to Junk mails and it displays From: Nobody (nobody@seun.web4africa.net) on behalf of Auto-Response (info@olumide.com). T...
Summary: hm, the version installed in my hosting company is even lower than that :| I put interest on this problem as I've beed a victim of those spammer's before. My account got suspended because my hosting c...
Summary: It's working, but I have a problem on the validation (my IF statement are not working) <?php ini_set ('sendmail_from', "myemail@domain.com"); $email = 'myemail@domain.com'; $subject = $HTTP_POST_V...