Computing.Net > Forums > Web Development > Help : Problem with mail using PHP

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.

Help : Problem with mail using PHP

Reply to Message Icon

Name: chitvan
Date: May 31, 2007 at 04:15:36 Pacific
OS: Linux
CPU/Ram: 256
Product: Intel
Comment:

i am sending a simple text/html mail with the following header information

$headers= "MIME-Version: 1.0\n";
$headers.= "Content-Type: text/html; charset=iso-8859-1\n";
$headers.= "From:".$from."\n";

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. When I replace \n with \r\n in gmail the message includes html tags with it. That is hy I am using \n. In our server I was receiving the mail with html tags but when i incorporated
$headers= "MIME-Version: 1.0\n";
the problem solved but I received the message as an attachment i,e, unnamed file with message body "There are no parts that can be displayed inline."

When I send the html mail from outlook or anywhere else on our server the header shows multipart/alternative and I recv 1 attached file with all images and body of message contains simple text.

Kindly please let me know what could be the problem.

Thanks in advance

Chitvan Seth



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Help : Problem with mail using PHP

cannot work with mysql using php www.computing.net/answers/webdevel/cannot-work-with-mysql-using-php/4294.html

javax.mail problem with cc option www.computing.net/answers/webdevel/javaxmail-problem-with-cc-option/2684.html

PHP mail www.computing.net/answers/webdevel/php-mail-/3880.html