PHP mail() function not working

onyxmoron

New Member
Messages
37
Reaction score
0
Points
0
I made a page with a contact form that posts to a file containing this code:

PHP:
mail( "whatever@wherever.com", $subject, $message, "From: $email" );

I have my own email address in the whatever@wherever part and the other variables are filled in correctly. It works when I test it locally but it doesn't work when I upload the files to x10. I've tried repeatedly and the messages never arrive.

My account panel says I have intermediate php (although I didn't recieve a confirmation email after applying for the upgrade), so shouldn't this be working? Do I have to do something else to get it to work?
 
Last edited:

jrobert755

New Member
Messages
15
Reaction score
0
Points
0
try this:

PHP:
$header = 'From: email address' . "\r\n";
$message= "whatever";
mail("whatever your email is (doesnt have to be real)", "subject of message", $message, $header);
i just tried this and it worked. if it doesn't try going to your account panel, make sure its at intermediate php, and then put in a support ticket (note: took a couple of days for the upgrade to happen with me, so wait a couple of days before you submit a ticket")
 
Top