PHP MAIL() Not Working please read it.

Status
Not open for further replies.

sreeraj.hcr76

New Member
Messages
4
Reaction score
0
Points
0
I like x10hosting Service very much.
I am sorry to say the following problem.
PHP mail() not working for me now.
Please read my following script which worked on another hosting server.
Should I make any modification on script?

(I get "mail was sent by php" message.But mail not delivered)(Already checke on spam folder.) But...

<?php
error_reporting(E_ALL);
ini_set("sendmail_from" , "admin@sreemagic.x10.mx");
$to = 'shine1359@gmail.com';
if(mail($to, 'Testing mail' , 'php mail working.'))
{
echo 'mail was sent by php';
}
else
{
echo 'PHP could not sent the mail';
}
?>
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Where is the test script located? I just looked at the maillogs and the only email I see going to your gmail account was on August 27th, and was a welcome email.
 

sreeraj.hcr76

New Member
Messages
4
Reaction score
0
Points
0
Where is the test script located? I just looked at the maillogs and the only email I see going to your gmail account was on August 27th, and was a welcome email.


thanx for reply.
I placed the above script on public_html folder.(not in subfolder)
anyway I want only three answers,
1. Any problem in my script?
2. Is PHP mail() working on lotus server?
3. What are the important things while using php mail() ?
Please add it on FAQ
 
Last edited:
Status
Not open for further replies.
Top