amazon-ses

Email on failure using AWS SES in Apache Airflow DAG

笑着哭i 提交于 2019-12-18 05:22:08
问题 I am trying to have Airflow email me using AWS SES whenever a task in my DAG fails to run or retries to run. I am using my AWS SES credentials rather than my general AWS credentials too. My current airflow.cfg [email] email_backend = airflow.utils.email.send_email_smtp [smtp] # If you want airflow to send emails on retries, failure, and you want to use # the airflow.utils.email.send_email_smtp function, you have to configure an # smtp server here smtp_host = emailsmtpserver.region.amazonaws

Send emails from AWS EC2 instance (SES mandatory?)

心已入冬 提交于 2019-12-17 18:39:09
问题 I write this post just to see if I can get some clarifications regarding email sending concepts in an AWS EC2 instance. This is related with this other post Rails does not send emails on AWS I´m developing a Rails application that sends emails to customers (such as confirmation or information emails). I dont know exactly which email service is using Rails. I didn´t install any particular gem. But the emails are been sent perfectly in development environment (Ubuntu). When I deploy to my

AWS SDK Guzzle error when trying to send a email with SES

左心房为你撑大大i 提交于 2019-12-13 22:31:44
问题 Getting a weird error I have no idea how to fix. This is the error: ( ! ) Catchable fatal error: Argument 2 passed to Guzzle\Service\Client::getCommand() must be an array, string given, called in phar://C:/wamp/www/PHPCodeLance/WebTech/Projects/MIB v2/lib/aws/aws.phar/vendor/guzzle/guzzle/src/Guzzle/Service/Client.php on line 93 and defined in phar://C:/wamp/www/PHPCodeLance/WebTech/Projects/MIB v2/lib/aws/aws.phar/vendor/guzzle/guzzle/src/Guzzle/Service/Client.php on line 113 Call Stack #

Errno::ECONNREFUSED (Connection refused - connect(2) for nil port 587): for Rails on Heroku

帅比萌擦擦* 提交于 2019-12-13 16:15:19
问题 I suspect I'm missing something basic here, but been wrestling with this one for a while with no luck. Rails 4.2.5 Ruby 2.2.3p173 Emails are sending fine on localhost using Amazon SES (I followed this stellar guide) but not on a Heroku production environment. I'm receiving the error in the title of the post: Errno::ECONNREFUSED (Connection refused - connect(2) for nil port 587) I suspect the core of the problem is the nil in there, but I haven't been able to figure out where it's coming from.

AWS SES SendBulkTemplatedEmail, example and what happens if quota is exceeded?

不打扰是莪最后的温柔 提交于 2019-12-13 12:44:00
问题 I have two questions regarding AWS SES SendBulkTemplatedEmail: 1) Does anyone know about any step-by-step tutorial in .Net? I have only seen examples using the CLI, and I am fumbling with the API to try to make it work. 2) Each SendBulkTemplatedEmail request can contain 50 destinations (recipients). My daily send quota is 100,000 emails, and my rate is 14 per second. Does that mean I must send in 14 destinations max per call, and then sleep the thread for a second before sending in the next

How can i send mail without verifying the recipients in amazon ses

陌路散爱 提交于 2019-12-13 12:25:22
问题 I have been trying to send mail with amazon ses and it worked very well for all the verified recipients. But i have a requirement to send mails to un verified recipients now. How to do this. Thanks 回答1: Your SES account is in Sandbox Mode. You need to open a request with AWS to take your SES account out of Sandbox Mode. This is documented here. 回答2: By default, AWS never provides you full access and needs certain verification(s) to ensure security & remove possibilities of Fraudulent

Making PHP's mail() asynchronous

我只是一个虾纸丫 提交于 2019-12-13 11:32:28
问题 I have PHP's mail() using ssmtp which doesn't have a queue/spool, and is synchronous with AWS SES. I heard I could use SwiftMail to provide a spool, but I couldn't work out a simple recipe to use it like I do currently with mail() . I want the least amount of code to provide asynchronous mail. I don't care if the email fails to send, but it would be nice to have a log. Any simple tips or tricks? Short of running a full blown mail server? I was thinking a sendmail wrapper might be the answer

SES Email not verified for “to” field in Laravel

£可爱£侵袭症+ 提交于 2019-12-13 06:48:46
问题 I have: Mail::send('emails.booking-confirmation', [ 'name' => $name, 'email' => $email, 'tel' => $tel, 'msg' => $msg, 'date' => Carbon::parse($date)->format('l, jS \o\f F, Y \a\t H:ia'), 'service' => $q->service, 'duration' => $q->duration . ' minutes' ], function ($m) use ($name, $email) { $m->from('myemail@ddress.co.uk', 'Subject'); $m->to($email, $name)->subject('Your Booking'); }); When sending using AWS SES I get: Error executing "SendRawEmail" on "https://email.eu-west-1.amazonaws.com";

AWS: IAM user policies for SES not working

廉价感情. 提交于 2019-12-12 20:31:14
问题 I'm trying to run the following PHP code on my server: require 'aws_sdk_php/aws-autoloader.php'; use Aws\Ses\SesClient; echo 'teste1'; $client = SesClient::factory(array( 'key' => 'xxxxx', 'secret' => 'yyyyy', 'region' => 'us-east-1' )); echo 'teste2'; echo $client->listIdentities(); echo 'teste3'; echo $client->verifyEmailIdentity(array( 'EmailAddress' => 'my_email@gmail.com' )); I created a user with permission to send emails using SMTP (ses:SendRawEmail) and it works just fine. However the

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