Hi,
I have a website, which is supposed to send confirmation e-mails to registered users. Everything works fine on my computer (used WAMP as development environment), but when I transferred my files to a host, I can’t send mails.
My host says my smtp is: mail.mojpodstanar.com
I set this: ini_set("SMTP","mail.mojpodstanar.com");
Still doesn’t work.
My code is:
$to = 'soo.benjeiz@neobee.net';
$subject = 'the subject';
$message = 'hello';
if(mail($to, $subject, $message))
{
echo "Mail sent";
}
else
{
echo "Mail send failure - message not sent";
}
When I run the script, it outputs “Mail sent”, as if it is sent.
Sendmail path is: “ sendmail_path = /usr/sbin/sendmail -t –I ”.
Should I contact the service provider as a last resort?😕