Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some emails sent from perl have messed up newlines.

Status
Not open for further replies.

LeonKl2

Programmer
Jun 16, 2003
26
US
Hi,

I have a small CGI script that I wrote that sends email using sendmail.

Usually it works fine but for some email addresses the newlines end up doubling, or there are no newlines at all.

Any idea why this could be happening or how to fix it?

I have thought that maybe adding Content-Type: text/plain before the content would help. The script currently doesn't specify any content type and I thought that some ISPs might interpert it different.

However when I do that the email wont send. No error, just no email is sent. I have no idea why.

Any ideas?

Thanks,
Leon
 
Leon,

Could you post some code that demonstrates the problem please?

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top