HEELLP!!!!! I can't get mail() to work!!

the mail() function

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: HEELLP!!!!! I can't get mail() to work!!

Post by johnj » Thu Sep 12, 2013 12:39 am

right after $email_status = mail(), add the following:
$error = error_get_last();
Now print this $error and see what is going wrong.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: HEELLP!!!!! I can't get mail() to work!!

Post by johnj » Sun Sep 15, 2013 5:52 am

above the "if", right after this line, $error = error_get_last();

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests