How to send email using Powershell

Send an Email Using Windows PowerShell

While you are working on database email failure issues, you need to be sure whether the issue is with the DB mail configuration within SQL or with the SMTP server. To find out this, you can send a test email using the Powershell script.

Some popular email providers and SMTP settings

Service SMTP server Port Connection
Gmail smtp.gmail.com 587
25
465
TLS
TLS
SSL
Office 365 smtp.office365.com 587
25
TLS
Outlook.com smtp-mail.outlook.com 587
25
TLS
Yahoo mail smtp.mail.yahoo.com 587
25
465
TLS
TLS
SSL
Windows Live Hotmail smtp.live.com 587
25
TLS
Zoho smtp.zoho.com 587
465
TLS
SSL

 

Facebook Comments Box

Comments

Leave a Reply

Your email address will not be published.