Created
October 8, 2013 03:53
-
-
Save jorke/6879224 to your computer and use it in GitHub Desktop.
Send email via AWS SES using powershell one liner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
People having the secure connection/authentication error need to check they are using the correct SMTP server