Skip to content

Instantly share code, notes, and snippets.

@SilasRodrigues19
Created March 26, 2023 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SilasRodrigues19/95ffd9e355d723c857501faf2ee99b9c to your computer and use it in GitHub Desktop.
Save SilasRodrigues19/95ffd9e355d723c857501faf2ee99b9c to your computer and use it in GitHub Desktop.
PHPMailer host and ports
// Microsoft Office 365
$mail->Host = 'smtp.office365.com';
// Yahoo Mail
$mail->Host = 'smtp.mail.yahoo.com';
// iCloud
$mail->Host = 'smtp.mail.me.com';
// Amazon SES
$mail->Host = 'email-smtp.us-west-2.amazonaws.com';
// Using TLS/STARTTLS on port 587
$mail->Port = 587;
// Using SSL/TLS on port 465
$mail->Port = 465;
// Using port 25 without security
$mail->Port = 25;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment