I'm Currently having problems sending mail using the Mercury mail Server
I've also read some of the other problems with the mercury mail but non seemed to yeild a solution to my problem
Problem:
Using this script:
- Code: Select all
<?php
$to = "test@localhost";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@localhost" . "\r\n" .
"CC: test@127.0.0.1";
if(mail($to,$subject,$txt,$headers))
echo'<p>Mail Sent</p>';
else
echo'<p>ERROR</p>';
?>
PHP reports "Mail Sent" but after investigating sendmail.log i see this error message. "Aug 05 10:21:26 host=localhost tls=off auth=off from=postmaster@localhost recipients=test@localhost,test@127.0.0.1 errormsg='cannot connect to localhost, port 25: Connection refused' exitcode=EX_TEMPFAIL"
However when i send mail directly from Mercury Mail it'self it works fine and thunderbird can recieve it.
Though when i try to reply (to my self, to test the sending ability) thunderbird flicks up with "Sending of message failed. an error occurred sending mail: SMTP server mail.localhost is unknown. The server may be incorrectly configured. Please verify that your SMTP server settings are correct and try again."
But what should i be looking for in Mercury Mail server settings? it looks okay, but i don't really have an idea what i'm looking for.
Port-Check on Xampp reports 25 is Free But should Mercury Mail but be running on that port? but i have turned off my Anti-Virus & Firewall and then started Xampp & Mercury Mail but still the same problem.