Yet another PHP mail() question...

Status
Not open for further replies.

briannef

New Member
Messages
5
Reaction score
0
Points
0
Hello x10 Forum! Hope all is well....

So, just to get this out of the way...
My email form essentially comes down to the code below. Note that xxx in email header is email account info created in x10 cPanel.

Code:
if ($formOk) {
        $headers =    'From: xxx@xxx.x10.mx' . PHP_EOL;
        $headers .=   'Reply-To: ' . $name . ' <' . $email . '>' . PHP_EOL;
        $headers .=   'MIME-Version: 1.0' . PHP_EOL;
        $headers .=   'Content-type: text/html; charset=UTF-8';
      
        $emailbody =    $name . ', <br>';
        $emailbody .=   $email . '<br><br>';
        $emailbody .=   $message . '<br><br><br>';
        $emailbody .=   'Sent from IP Address: ' . $ipaddress . '<br>';
        $emailbody .=   'This can be usefull for black-listing spam!';  
      
        mail("myemail@hotmail.com", $subject, $emailbody, $headers);
}

This worked... till about 6 hours ago. Then, *POOF*, nothing and I mean NOTHING. No script errors, no log errors, no emails are being sent (I'm developing on a WAMP environment, mail is sent thru smtp via sendmail, BUT I have also tested from x10 servers).

To be sure my code is OK I have successfully sent mail through smtp.live.com with no problems.

I can't figure this one out. Is there something I am missing when it comes to x10 mail servers? Is it possible that microsoft/hotmail has just blacklisted my x10 email? I dunno...

Any help or suggestions would be greatly appreciated!
 
Last edited:

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
What is the exact address you are sending from?

EDIT: Nevermind, it appears there is a larger issue with the email server itself, I'll poke administration to get this fixed.
 
Last edited:

briannef

New Member
Messages
5
Reaction score
0
Points
0
What is the exact address you are sending from?

EDIT: Nevermind, it appears there is a larger issue with the email server itself, I'll poke administration to get this fixed.

Thanks Skizzerz! Appreciate it!
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
To verify that it seems to be a problem with the email server, I have a cron job (on Vox) that sends an email once a day and last night it ran (it logs its actions) but the email was not delivered.
 

briannef

New Member
Messages
5
Reaction score
0
Points
0
To verify that it seems to be a problem with the email server, I have a cron job (on Vox) that sends an email once a day and last night it ran (it logs its actions) but the email was not delivered.

I spent a huge chunk of time last night making sure it wasn't a mistake on my end and I still wasn't sure. descalzo, your reply eases my mind. Thank you!
 

aphantas

New Member
Messages
1
Reaction score
0
Points
0
I woke up this morning to find I was getting none of my email. For awhile I thought I just hadn't received nothing overnight. So I waited and eventually I noticed that a mailing list (on one yahoo groups) had several messages posted. So I knew something was up. So I tried sending a test email from my gmail account to my personal account on the server. Apparently email is not bouncing.

I've been with X10 for a couple month and this is the first time email has gone down. I hope this is temporary thing and will be fixed soon as I left my last host because of the mail server being down a lot (like several times a week).

Anyone know how long it takes our hosts to generally fix things like this?
 

briannef

New Member
Messages
5
Reaction score
0
Points
0
I've been with X10 for a couple month and this is the first time email has gone down.

aphantas, I'm happy to hear that this is the first time the email has gone down since you have joined. Still a bummer it's down tho...

Anyone know how long it takes our hosts to generally fix things like this?

I really really hope it's soon and that this type of thing is a freak occurrence for x10 :$
 

briannef

New Member
Messages
5
Reaction score
0
Points
0
I just received a flood of pending emails! Seems all is well. Gonna close the thread.
 
Status
Not open for further replies.
Top