Created
March 26, 2023 00:57
-
-
Save SilasRodrigues19/95ffd9e355d723c857501faf2ee99b9c to your computer and use it in GitHub Desktop.
PHPMailer host and ports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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