php problem
- Started
- Last post
- 10 Responses
- CyBrainX
I'm no php master, but I have an extremely simple php form that will only send email to one of my email addresses and not any other. What demonic wickedness could cause this?
Here's my code.
http://pastebin.com/DTpRv8ZQIf I change that sendTo to any other email address it won't work.
- CyBrainX0
Aparently some servers/web hosts wont allow email from php forms? Now I'm looking into how to get my client's server to accept php.
- ntimm0
I had this issue once, it was fucking annoying but a simple empty cache took care of it.
- CyBrainX0
@BattleAxe:
I tried it this way.
...
but that's what I had before only I wasn't adding additional addresses. If I added more addresses the one that worked is still the only one that doesn't fail.
- CyBrainX0
Ok, I've put this off a long as I could.
I have a slightly different version of this code.
http://pastebin.com/J62vDjSVIn this example, the form sends to the second email address but not the first. The page and Flash calling the php are on the same domain as the first email address which works.
I have no idea why one address would work but the other wouldn't. I'll be your best friend if you can explain in child's terms what's wrong.
Thanks.
- jadrian_uk0
you dont need \r\n in $message, \r\n are only to separate headers, like: $headers = "From: ... text/html; Charset=iso-8859-1";
maybe not your problem, so the second adress is
maybe server is not accepting this sort of "double domain adress".
or just a problem with Flash when it serves the data to php- you should set a content type header so you can "style" the messagejadrian_uk
- CyBrainX0
I think the \n bit is to create a line break in the content of the email. I don't think it's causing any problems.
When I try removing the other email address, still fails.
- yes but setting a content type as html you could make line breaks using <br/>, would be more readable.jadrian_uk
- check the Flash serving, pretty sure the problem is there.jadrian_uk
- jadrian_uk0
I just tried your script from my server and it works.
- CyBrainX0
When you tested did you set the "From" to ihatejavascript@free.fr?
I got 5 emails from that address overnight.