I use a simple code to send email by PHP like:
Code: Select all
<?php
$email="myemail@yahoo.com";
$subject="test email";
$message="test message";
$sent=mail($email,$subject,$message);
if($sent) echo "Mail sent";
else echo "Mail was not sent";
?>I contacted my host and they told me to make sure about this rule:
you must change the mail server from "mail.your_domain.name" to "scriptmail.intermedia.net"
But I don't know what I should do about this