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 587Good results look like:
ComputerName : email-smtp.us-west-2.amazonaws.comRemoteAddress : 52.27.67.21RemotePort : 587InterfaceAlias : Ethernet 2SourceAddress : 192.168.35.223TcpTestSucceeded : 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