Skip to content

Instantly share code, notes, and snippets.

@neilstuartcraig
Created October 17, 2013 14:08
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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…
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'
}
},
},
@gam-phon
Copy link

It works. Thank you

@brentwalter
Copy link

Thank you. It worked for me!

@nishantsny
Copy link

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