PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
flycast
Forum Commoner
Posts: 37 Joined: Wed Jun 01, 2005 7:33 pm
Post
by flycast » Thu Nov 17, 2005 9:55 pm
mail() is rejecting this header:
Any ideas?
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Fri Nov 18, 2005 5:40 am
Do you add any new lines when you create the headers?
Mac
flycast
Forum Commoner
Posts: 37 Joined: Wed Jun 01, 2005 7:33 pm
Post
by flycast » Fri Nov 18, 2005 7:08 am
Are newlines bad? Should there be one at the end?
saumya
Forum Contributor
Posts: 193 Joined: Sun Jan 30, 2005 10:21 pm
Post
by saumya » Fri Nov 18, 2005 7:27 am
new lines are not bad.But any extra character will break your code. "any" means "any", it may be a space too.
flycast
Forum Commoner
Posts: 37 Joined: Wed Jun 01, 2005 7:33 pm
Post
by flycast » Fri Nov 18, 2005 2:00 pm
What is the proper format for a header? Where is there a readable document on this?
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Fri Nov 18, 2005 5:34 pm
flycast
Forum Commoner
Posts: 37 Joined: Wed Jun 01, 2005 7:33 pm
Post
by flycast » Fri Nov 18, 2005 9:45 pm
Thanks timvm but we're talking emails here. This link is HTML. Are they the same?
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Sat Nov 19, 2005 6:42 am
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
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Sat Nov 19, 2005 4:42 pm
search for phpmailer, it is highly recommended for use of sending mails in php as it is not blocked by spam filters and such
timvw
DevNet Master
Posts: 4897 Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium
Post
by timvw » Sat Nov 19, 2005 7:39 pm