Meteor Email with Amazon SES

722 views
Skip to first unread message

Sam Verhasselt

unread,
Mar 1, 2013, 5:02:01 AM3/1/13
to meteo...@googlegroups.com

Hey, 

I'm attempting to integrate Amazon SES into my meteor application. Both locally with meteor run and after bundling and deploying I receive an error. The Method that uses Email.send is called 'sendMessage' in the file server/email.js

Exception while invoking method 'sendMessage' Error: getaddrinfo ENOTFOUND
    at Object.Future.wait (/usr/lib/meteor/lib/node_modules/fibers/future.js:322:15)
    at smtpSend (app/packages/email/email.js:69:43)
    at Object.Email.send (app/packages/email/email.js:111:7)
    at sendMessage (app/server/email.js:13:9)
    at Meteor.methods.sendMessage (app/server/email.js:28:7)
    at _.extend.protocol_handlers.method.exception (app/packages/livedata/livedata_server.js:593:30)
    at _.extend.withValue (app/packages/meteor/dynamics_nodejs.js:33:19)
    at app/packages/livedata/livedata_server.js:592:46
    at _.extend.withValue (app/packages/meteor/dynamics_nodejs.js:33:19)
    at _.extend.protocol_handlers.method (app/packages/livedata/livedata_server.js:591:37)
    - - - - -
    at errnoException (dns.js:37:11)
    at Object.onanswer [as oncomplete] (dns.js:124:16)

Am I doing something wrong with my MAIL_URL environment variable? Or is this an issue with Transport Layer Security? Amazon SES says it requires TLS, I don't know if that is the issue. This is my first application dealing with sending Email.

Thanks,

~Sam

TZin

unread,
Apr 15, 2013, 12:12:24 PM4/15/13
to meteo...@googlegroups.com
Having same issue. Did you manage to get it solved?

Adrian Lanning

unread,
Apr 16, 2013, 2:45:35 AM4/16/13
to meteo...@googlegroups.com
Does your password happen to contain an '@' char?  I seem to recall getting that error when I had two @ symbols in the url.

But in general I think that error pops up whenever the url can't be resolved by DNS.

TZin

unread,
Apr 16, 2013, 2:57:36 AM4/16/13
to meteo...@googlegroups.com
Exception I encounter is this: Exception while invoking method 'forgotPassword' DeliveryError: Message delivery failed

I've tested SMTP variables to work with another code piece from separate project. It's okie. And, since SMTP URL requires username and password to be URI-Component-Encoded (i.e.EncodeURIComponent()), I did that, too. Yet, it raised error.


Thanks for the input anw.

Nate Strauser

unread,
Apr 16, 2013, 9:54:36 AM4/16/13
to meteo...@googlegroups.com
see here http://stackoverflow.com/questions/14388501/how-can-i-configure-meteor-to-use-amazon-ses-when-running-on-heroku/14401094#14401094

for how i got it working - sending email just fine with heroku/meteor/ses

be aware, if you send an email to a ses 'blacklisted' email, the email.send call will throw an error - just wrap each email call in a try/catch and only send emails to 1 person at a time (saw the 1 recipient per email bit in the ses docs somewhere)
Message has been deleted

TZin

unread,
Apr 18, 2013, 6:35:48 AM4/18/13
to meteo...@googlegroups.com
Ok, I will look into that. Thanks, Nate.
Reply all
Reply to author
Forward
0 new messages