suppose I have an email address [email protected]
can I use this email address to send mails through the php mailer code where in the TODOs
the password is the password of [email protected]
and username is username
or does the password always have to be crimson50
and username as [email protected]
?
/ instantiate mailer
$mail = new PHPMailer();
// configure mailer
// http://phpmailer.worxware.com/index.php?pg=methods
// http://phpmailer.worxware.com/index.php?pg=properties
// https://www.google.com/settings/u/0/security/lesssecureapps
$mail->IsSMTP();
$mail->Host = "smtp.gmail.com";
$mail->Password = "TODO";
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->SMTPDebug = 1;
$mail->SMTPSecure = "tls";
$mail->Username = "TODO";