Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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…
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'
}
},
},

It works. Thank you

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