I'm trying to send mails from my server by google app.
I am using this php code :-
$to = "[email protected]";
$header = "From: [email protected]";
$subject = "testing mail";
$message = "no reply pls";
ini_set("SMTP","smtp.gmail.com");
ini_set("SMTP_PORT", 23);
ini_set("sendmail_from","[email protected]");
ini_set("auth_username","[email protected]");
ini_set("auth_password","password");
mail($to, $subject, $message, $header);
Thanks in advance !