Created
October 17, 2013 14:08
-
-
Save neilstuartcraig/7025554 to your computer and use it in GitHub Desktop.
An extract of config.js for ghost (http://ghost.org) blog app (nodejs) to allow sending email via SES (over SSL).
Note that this will fail if your website is not return-connectable by SES on your defined ghost URL i.e. your blog must be publicily available, not just runnnig on e.g. a private VM. If you're running under HTTPS then your SSL cert m…
This file contains 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
mail: { | |
transport: 'SMTP', | |
host: 'ssl://email-smtp.us-east-1.amazonaws.com', | |
options: { | |
port: 465, | |
service: 'SES', | |
auth: { | |
user: 'YOUR-SES-ACCESS-KEY-ID', | |
pass: 'YOUR-SES-SECRET-ACCESS-KEY' | |
} | |
}, | |
}, |
Thank you. It worked for me!
What to do if I have a self-signed certificate? Here is my current config
mail: {
transport: 'SMTP',
host: 'my_institute_server',
options: {
port: 25,
service: 'SES',
auth: {
user: 'My_username_on_the_server',
pass: 'My_password_on_the_server'
}
},
},
The mail to users on the same server(i.e on my institute server) goes through but for users on any other server, I get this error: Can't send mail - all recipients were rejected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works. Thank you