php mail() function not working

Status
Not open for further replies.

t44studio

New Member
Messages
16
Reaction score
0
Points
0
I have a contact form on my site that utilizes the php mail() function to allow a user to send me an email. It worked fine until Saturday, July 23rd when it completely stopped working. I have not made any edits to my code.

Is there some maintenance going on or is php mail() down? If so, when can we expect this to come back up? I'm on the boru server if that helps.

Thanks in advance!
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Hello,

mail() should be fully functional. Try setting a From: address if you have not already to get bounce messages in case the delivery fails (and also to get around the email block lists that many email providers use, which occasionally block x10)
 

t44studio

New Member
Messages
16
Reaction score
0
Points
0
I've been doing testing lately (sending an email to myself through the form) because I was thinking of redesigning. It was working fine (not being blocked or anything) until last Saturday. But now, it passes the error checking and does nothing. Has something changed?

---------- Post added at 07:30 PM ---------- Previous post was at 07:18 PM ----------

Okay, I added a test php file to my public_html directory just for testing purposes. It should just send an email from myself to myself, but it still doesn't work. This is the entire code:

HTML:
<?php

$mailTo = 't44studio@gmail.com';
$mailFrom = 't44studio@gmail.com';
$subject = 'test subject';
$message = 'test message';
$headers = 'From: '.$mailFrom;
$success=mail($mailTo, $subject, $message, $headers);
if($success){echo "Success";}
?>

It echo's "Success", but doesn't send any email. It's not in my spam or my trash or anywhere. Am I missing something? This is driving me crazy!
 
Last edited:
Status
Not open for further replies.
Top