Skip to content

Instantly share code, notes, and snippets.

@JustAyush
Created May 24, 2020 11:43
Show Gist options
  • Save JustAyush/532f55dc1135527cfb2b38618a72815f to your computer and use it in GitHub Desktop.
Save JustAyush/532f55dc1135527cfb2b38618a72815f to your computer and use it in GitHub Desktop.
$mail->Host = "smtp.gmail.com"; // SMTP server example
$mail->SMTPDebug = 0; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 587; // set the SMTP port for the GMAIL server
$mail->Username = '[email protected]'; // SMTP username
$mail->Password = 'pixelcre@tives123'; // SMTP account password example
$mail->setFrom($email, $name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment