/
Test Sending Email From Command Line
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.
Ā
Related content
Configure Adams or Configure Client - SeSecurityPrivilege Error
Configure Adams or Configure Client - SeSecurityPrivilege Error
Read with this
Email notification configuration
Email notification configuration
More like this
Securing with HTTPS
Securing with HTTPS
Read with this
How to tell if a port is open
How to tell if a port is open
More like this
What ports are used in communication on a Windows Network?
What ports are used in communication on a Windows Network?
More like this
No Email Sent when the Folder's Status Changed
No Email Sent when the Folder's Status Changed
More like this
Ā© 2023 Foray, LLC - All Rights Reserved