email-spec

AWS SES handle doesn't exist mailbox with Lambda

倖福魔咒の 提交于 2019-12-12 18:17:50
问题 I try to use AWS SES for handle some app data on get email. I've verified mydomain.com with AWS SES. I want handle dynamic email to addresses 1@mydomain.com 2@mydoamin.com, where 1,2 id from database. I want handle it with AWS lambda, but I can not do it because I get: 550 5.1.1 Requested action not taken: mailbox unavailable Is there any way to bypass the creation of mailboxes? How can I change to email address via SES, for send all emails to one pre existed mailbox? 回答1: The error 550 5.1.1

How do I test Pony emailing in a Sinatra app, using rspec?

♀尐吖头ヾ 提交于 2019-12-11 02:29:46
问题 I'm trying out email_spec, which says it supports Pony, but I'm not sure how I'd go about testing emails in a sinatra app. The examples in the readme show usages with rails ActionMailer , but not in Pony. Not precious about using email_spec, so any other ideas for testing emails using rspec in sinatra are welcomed =) 回答1: I ended up looking at the pony spec file, and stealing code from it to write my specs =) This is what I have: ./spec/spec_helper.rb def do_not_send_email Pony.stub!(:deliver