Page 1 of 1

What's wrong with this header?

Posted: Thu Nov 17, 2005 9:55 pm
by flycast
mail() is rejecting this header:
From: someplace Reply-To: no-reply@domainremoved.com Return-Path: my.name@domainremoved.net MIME-Version: 1.0 X-Mailer-ListID: 5 Content-Type: multipart/alternative; boundary="==MULTIPART_BOUNDARY_1ca5af0af30108b1d84116c29bb18d28"
Any ideas?

Posted: Fri Nov 18, 2005 5:40 am
by twigletmac
Do you add any new lines when you create the headers?

Mac

Posted: Fri Nov 18, 2005 7:08 am
by flycast
Are newlines bad? Should there be one at the end?

Posted: Fri Nov 18, 2005 7:27 am
by saumya
new lines are not bad.But any extra character will break your code. "any" means "any", it may be a space too.

Posted: Fri Nov 18, 2005 2:00 pm
by flycast
What is the proper format for a header? Where is there a readable document on this?

Posted: Fri Nov 18, 2005 5:34 pm
by timvw

Posted: Fri Nov 18, 2005 9:45 pm
by flycast
Thanks timvm but we're talking emails here. This link is HTML. Are they the same?

Posted: Sat Nov 19, 2005 6:42 am
by twigletmac
AFAIK, you need new lines in your headers so that each one is on a new line. The headers posted all ran into each other so I wondered if that was the problem :)

Mac

Posted: Sat Nov 19, 2005 4:42 pm
by John Cartwright
search for phpmailer, it is highly recommended for use of sending mails in php as it is not blocked by spam filters and such

Posted: Sat Nov 19, 2005 7:39 pm
by timvw
Sorry, here is the correct one :)

ftp://ftp.rfc-editor.org/in-notes/rfc2821.txt.