I am trying to setup contactus page. and testing it to work throug localhostI. I ahve setup everything php.ini and even tred to use following to make sure that everything is ok:
I get follwoing error:
and line whee I am asked to do that is :
now I need to know what I should do specify that server needs to be authenticated and where? any help?
Code:
ini_set("SMTP","mail.name.com"); // thats how I setup my outlook ini_set("smtp_port","25"); ini_set("sendmail_from","address@hotmail.com"); ini_set("auth", true); if(mail($admin_email,$email_subject,$message,"From:$check_email,Reply-to:$check_email")) { header("Location: contactUs.php?status=1"); exit; } else { header("Location: contactUs.php?status=0"); }
Code:
Warning: mail() [function.mail]: SMTP server response: 553 This SMTP server requires authorisation. Most mail clients can be configured with "my server requires authorisation" to allow this in C:\xampp\htdocs\idols\contactUS\send_email.php on line 56
Code:
if(mail($admin_email,$email_subject,$message,"From:$check_email,Reply-to:$check_email")) {
Comment