mail() error

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

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

check that the header is in fact valid, as far as you can tell.. You may want to talk to your host, or as suggested previously, use phpmailer
jaylin
Forum Commoner
Posts: 68
Joined: Fri Nov 18, 2005 4:44 am

Post by jaylin »

which things that i should talk to my host? do i need to increase max_execution_time, max_input_time, memory_limit?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ask them what headers are required to make a "well formed" header.
jaylin
Forum Commoner
Posts: 68
Joined: Fri Nov 18, 2005 4:44 am

Post by jaylin »

the error only occurs when i display more than 1 record in the email. so, i think, this is not the header problem but the body message error. can u point me the way to solve?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

nothing really stands out in your code, so I'm unsure how we can help much further.. The only things that stand out are, that you don't have standard html in the message (which shouldn't really affect this issue), and that if the data stored inside the image arrays or id array or buyer prices array may be "bad", whatever that means...

Make a concentrated read over the final result $message is and $header is before you call mail(), that may lead to more insight.
jaylin
Forum Commoner
Posts: 68
Joined: Fri Nov 18, 2005 4:44 am

Post by jaylin »

now, i found some html code error. i solved it. now it works find for 5 records, but, if more than 5, there will be error. i think this is not my fault any more. is there needed for further configuration changes?
Post Reply