Powershell script to test AWS SES send test email

Send-MailMessage -From <from> -to <to> -subject <subject> -SmtpServer email-smtp.us-east-1.amazonaws.com -Credential $(New-Object System.Management.Automation.PSCredential -argumentlist <AWS_ACCESS_KEY>, $(ConvertTo-SecureString -AsPlainText -String <AWS_SECRET_KEY> -Force)) -UseSsl -Port 587
  •  
  •  
  •  
  •  

Viet Luu has written 210 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply