i am using php and mail function , but i face this error:
Warning: mail() [function.mail]: SMTP server response: 550 No such user here in C:\inetpub\vhosts\saj.ir\subdomains\lms\httpdocs\registration\include.php on line 78
my code is :
$srting= "testing email";
ini_set("SMTP","webmail.saj.ir");
ini_set("sendmail_from","info@saj.ir");
$headers= 'MIME-Version: 1.0' . "\r\n";
$headers.= 'Content-type: text/html; charset=utf8' . "\r\n";
$headers .= 'From: www.saj.ir' . "\r\n";
mail("ayoob.khodadadi@gmail.com","class list",$srting,$header);
i don’t know
thanks .
i change
webmail.saj.irtohttp://ns1.easysoftco.comand now i face this message :
Failed to connect to mailserver at “http://ns1.easysoftco.com” port 25, verify your “SMTP” and “smtp_port”
oh i found my problem : i am using widows and IIS 7.5
is there way to mail in IIS 7.5
You have defined
$headersand you are using$header