amazon-ses

How can set name for source/from attribute on sent emails?

旧街凉风 提交于 2019-12-04 22:57:16
I'm using aws-sdk-for-php and using AmazonSES for sending email. The problem is I want to set the name for the email. Example: 指定 < email_address > Here my source code: $mailer = new \AmazonSES( $aws_config ); $response = $mailer->send_email($mail_data['from'],$mail_data['to']); I believe the format you're looking for is as follows: "John Doe" <johndoe@example.com> Reference: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/email-format.html 来源: https://stackoverflow.com/questions/22141041/how-can-set-name-for-source-from-attribute-on-sent-emails

Django and AWS Simple Email Service

為{幸葍}努か 提交于 2019-12-04 21:18:33
I'm attempting to get a django site up and running and I'm trying to enable django's standard password reset service. My site is hosted by AWS EC2, so I figured I would use AWS SES for my email service. However, I can't get the smtp connection to work. Any idea on how to solve for the following error: Exception Type: SMTPSenderRefused Exception Value: (530, b'Authentication required', 'example@example.com') I've looked at the following, but I'd prefer to stay with django's built-in email back-ends if possible: https://github.com/django-ses/django-ses https://github.com/azavea/django-amazon-ses

Codeigniter SMTP Email with Amazon SES

浪子不回头ぞ 提交于 2019-12-04 10:06:30
问题 I think yesterday Amazon announced SMTP support for SES (Simple Email Service). I tried to send SMTP email with Codeigniter with no luck. I have a verified sender and everything looks good: $this->load->library('email'); $config = array( 'protocol' => 'smtp', 'smtp_host' => 'email-smtp.us-east-1.amazonaws.com', 'smtp_user' => 'SMTP USERNAME', 'smtp_pass' => 'SMTP PASSWORD', 'smtp_port' => 465, 'mailtype' => 'html' ); $this->email->initialize($config); $this->email->print_debugger(); $this-

Nodemailer and Amazon SES

故事扮演 提交于 2019-12-04 07:02:16
My structure: site -- node_modules ---- nodemailer -- webclient ---- js ------- controller.js site/node_modules/nodemailer site/webclient/js/controller.js site/webclient/js/controller.js: var nodemailer = require('../../node_modules/nodemailer'); var transport = nodemailer.createTransport('SES', { AWSAccessKeyID: 'xxx', // real one in code AWSSecretKey: 'xxx', // real one in code ServiceUrl: 'email-smtp.us-west-2.amazonaws.com' }); var message = { from: 'example@mail.com', // verified in Amazon AWS SES to: 'example@mail.com', // verified in Amazon AWS SES subject: 'testing', text: 'hello',

MVCMailer SendAsync() fails with Amazon SES

六月ゝ 毕业季﹏ 提交于 2019-12-04 04:27:35
问题 If I use Send() with MVCMailer, my SES works fine, but SendAsync() shows the error message below, does anyone know of a work around for this? THanks! System.Net.Mail.SmtpException: Failure sending mail. ---> System.InvalidOperationException: An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that

SES: Accessing email body inside lambda function

无人久伴 提交于 2019-12-04 03:51:49
I'm relatively new to AWS and I'm trying to process my email via Lambda Functions. I've built this one in node.js: 'use strict'; exports.handler = (event, context, callback) => { var http = require('http'); var data = JSON.stringify(event); var options = { host: 'my.host', port: '80', path: '/my/path', method: 'POST', headers: { 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': data.length } }; var req = http.request(options, function(res) { var msg = ''; res.setEncoding('utf8'); res.on('data', function(chunk) { msg += chunk; }); res.on('end', function() { console.log(JSON

Send Test Email fails with Email address is not verified

冷暖自知 提交于 2019-12-03 14:17:52
问题 I want to use Amazon's Simple Email Service to send emails. I verified my domain as well as the email address I want to send from. For both it says verified . Now when I use the Send Test Email from the AWS Console to send a test email to myemail@outlook.com, I only get the error message: Email address is not verified. The following identities failed the check in region EU-WEST-1: myemail@outlook.com (Request ID: 9fb78de1-2673-11e6-bbbc-5f819fabe4f4) Now it strikes me because it says myemail

AWS SES certificate verify failed

空扰寡人 提交于 2019-12-03 14:09:10
问题 I have set up SES successfully on one AWS instance. Now I am trying to use it on a second (not cloned) instance and when I run any of the SES scripts, I get an error: ses-get-stats.pl -k aws-credentials -q I get: Can't connect to email.us-east-1.amazonaws.com:443 (certificate verify failed) LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /usr/local/share/perl/5.8.8/LWP/Protocol/http

How to know if the SPF config is working (Amazon SES/Route53)?

喜夏-厌秋 提交于 2019-12-03 13:18:08
I'm using Amazon SES and Route53 and confused how I specify the TXT value to include the proper SPF config. Amazon gave me a SES TXT name/value pair which looks something like this: Name: "_amazonses.xxx.com" Value: "bInxJfnRbxxxxx9uFXgmxxxxxQHd08UxxxxxxsG+k=" I plugged this into my Route53 Record Set (same as "Zone file" on Godaddy). Sure enough after adding my SMTP credentials to my app and having Amazon verify my account ("grant production access"), it works and I can send email from my site to a variety of accounts (Gmail, Yahoo, Hotmail, my .edu university account). I know nothing about

Using PHPMailer and Amazon SES

霸气de小男生 提交于 2019-12-03 09:30:41
问题 I am using Amazon SES . I am trying to send an email from my PHP script using PHPMailer . I already verified two email ids and trying to send mail from and to this mail ids. But It throws the following error. ERROR SERVER -> CLIENT: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-693939519 QEPGeLndQQq5vJ53VMXU CLIENT -> SERVER: EHLO localhost SERVER -> CLIENT: 250-email-smtp.amazonaws.com250-8BITMIME250-SIZE 10485760250- STARTTLS250-AUTH PLAIN LOGIN250 Ok CLIENT -> SERVER: STARTTLS