PHP is not sending mail.

Status
Not open for further replies.

inadim8956

Member
Messages
107
Reaction score
0
Points
16
I have tried to send mail using the php mail() function, and I added a test case as follows:

PHP:
$mail_sent = mail( $to, $subject, $message, $headers );

echo $mail_sent ? "Mail sent" : "Mail failed";

and the output is "Mail Sent", yet I receive nothing on the email specified in the $to variable!!

I want to know what is wrong. And I`m sure that there is nothing wrong with my code as I have been working with it for a while on other free servers.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
cPanel-->Webmail-->SquirrelMail and check for returned messages.

Hotmail and Yahoo are blocking messages from x10hosting's email server due to abuse by some members.
 

inadim8956

Member
Messages
107
Reaction score
0
Points
16
ok, what about gmail or private exchange servers?? I have tried to send to an exchange server (my university e-mail).

I have checked the SquirrelMail and found an error!!

Hi. This is the qmail-send program at outgoing.x10hosting.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<********@hotmail.com>:
Connected to 65.54.188.110 but sender was rejected.
Remote host said: 421 RP-001 Unfortunately, some messages from 173.236.28.162
weren't sent. Please try again. We have limits for how many messages can be sent per
hour and per day. You can also refer to
http://mail.live.com/mail/troubleshooting.aspx#errors.
I'm not going to try again; this message has been in the queue too long.

--- Below this line is a copy of the message.

Return-Path: <sikas@web4.vital.x10hosting.com>
Received: (qmail 18848 invoked by uid 508); 5 Oct 2010 10:48:08 -0000
Received: from 10.33.248.78 by outgoing.x10hosting.com (envelope-from
<sikas@web4.vital.x10hosting.com>, uid 507) with qmail-scanner-2.08st
(clamdscan: 0.96/12087. spamassassin: 3.3.1. perlscan: 2.08st.
Clear:RC:1(10.33.248.78):SA:0(0.6/3.0):.
Processed in 0.837637 secs); 05 Oct 2010 10:48:08 -0000
X-Spam-Status: No, hits=0.6 required=3.0
Received: from unknown (HELO web4.vital.x10hosting.com) (10.33.248.78)
by outgoing.x10hosting.com with SMTP; 5 Oct 2010 10:48:07 -0000
Received: from sikas by web4.vital.x10hosting.com with local (Exim 4.69)
(envelope-from <sikas@web4.vital.x10hosting.com>)
id 1P362H-0003em-Jl
for ********@hotmail.com; Tue, 05 Oct 2010 07:50:21 -0400
To: ********@hotmail.com
Subject: Test HTML email
From: ********@hotmail.com
Content-type: text/html
Message-Id: <E1P362H-0003em-Jl@web4.vital.x10hosting.com>
Date: Tue, 05 Oct 2010 07:50:21 -0400
X-Qmail-Scanner-2.08st: added fake MIME-Version header
MIME-Version: 1.0

Can you identify the error from this mail??
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Connected to 65.54.188.110 but sender was rejected.
Remote host said: 421 RP-001 Unfortunately, some messages from 173.236.28.162
weren't sent. Please try again. We have limits for how many messages can be sent per
hour and per day. You can also refer to
http://mail.live.com/mail/troubleshooting.aspx#errors.
I'm not going to try again; this message has been in the queue too long.

Basically, hotmail has blacklisted our domain. I'll try to contact them.
 

inadim8956

Member
Messages
107
Reaction score
0
Points
16
I don`t know what is wrong now, when I changed the emails, from and to, I just get message failed on my page and I can`t find anything in SquirrelMail I don`t know how to send mails from my php applications.

I NEED HELP!!
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Seems there is a problem on your server, Chopin, with mail().

You are not the only one. Several others have reported the same problem of the mail() function returning False (ie, not sent).

I have notified Staff and they are looking into it.
 

inadim8956

Member
Messages
107
Reaction score
0
Points
16
Seems there is a problem on your server, Chopin, with mail().

You are not the only one. Several others have reported the same problem of the mail() function returning False (ie, not sent).

I have notified Staff and they are looking into it.

And how long will it take to fix this problem??
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
And how long will it take to fix this problem??

Hello. Mail on the Chopin server seems to be enabled again. Are you experiencing this issue?

Also, make sure the mail is sent to an address that's not Hotmail or Yahoo, as these two are blocking our servers right now. This problem isn't caused by PHP Mail not working, but by server abuse from some other users in the past.
 
Last edited:

inadim8956

Member
Messages
107
Reaction score
0
Points
16
Hello. Mail on the Chopin server seems to be enabled again. Are you experiencing this issue?

Also, make sure the mail is sent to an address that's not Hotmail or Yahoo, as these two are blocking our servers right now. This problem isn't caused by PHP Mail not working, but by server abuse from some other users in the past.

ok for now I receive a mail sent and on gmail the email is sent to the spam folder ... if no problem since it has started working ...

but what about hotmail and yahoo, when will be working again??

and for facebook, when will the links be acceptable again??
 
Status
Not open for further replies.
Top