Test Sending Email From Command Line
Email can be tested using PowerShell to isolate issues from software trying to sent email.
Open a PowerShell command prompt.
Test access to the port
Test-NetConnection -ComputerName email-smtp.us-west-2.amazonaws.com -Port 587
Good results look like:
ComputerName : email-smtp.us-west-2.amazonaws.com
RemoteAddress : 52.27.67.21
RemotePort : 587
InterfaceAlias : Ethernet 2
SourceAddress : 192.168.35.223
TcpTestSucceeded : True
Send a Test Email
Send-MailMessage -To <YOUR_EMAIL> -From donotreply@foray.com -UseSsl -SmtpServer email-smtp.us-west-2.amazonaws.com -Port 587 -Subject Test -Credential (New-Object pscredential('<USERNAME>', (ConvertTo-SecureString '<PASSWORD>' -AsPlainText -Force)))
Good results have no output but you receive an email.
Ā
Ā© 2023 Foray, LLC - All Rights Reserved