amazon-ses

Amazon SES reading emails stored in an s3 bucket using java from S3ObjectInputStream object

狂风中的少年 提交于 2019-12-06 14:01:31
I have configured my AWS SES to store all incoming emails to an S3 bucket with Object key Prefix as Email. I have a Java application using with I am trying to read all objects in that bucket and then move them to another so that only the unread emails remain in the bucket. I use the following code: public class FileReadImpl { private static final Logger logger = LoggerFactory.getLogger(FileReadImpl.class); AmazonS3 s3; public void init(String accessKey, String secretKey) { s3 = new AmazonS3Client(new BasicAWSCredentials(accessKey, secretKey)); } public List<S3ObjectInputStream>

AWS SES Service For sending mail using java

我怕爱的太早我们不能终老 提交于 2019-12-06 08:33:12
I am facing below error while using AWS SES Mail sending example? "Exception in thread "main" java.lang.NoSuchMethodError: com.amazonaws.client.AwsSyncClientParams.getAdvancedConfig()Lcom/amazonaws/client/builder/AdvancedConfig; at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.<init>(AmazonSimpleEmailServiceClient.java:277) at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClient.<init>(AmazonSimpleEmailServiceClient.java:261) at com.amazonaws.services.simpleemail.AmazonSimpleEmailServiceClientBuilder.build(AmazonSimpleEmailServiceClientBuilder.java:61) at com

Sending email using smtp gmail server from Amazon EC2 instance

拜拜、爱过 提交于 2019-12-06 02:42:13
I have a gmail for business emailId and would like to use it for sending out messages to my clients. I am using smtp.gmail.com to send out messages from an asp.net mvc application. This works fine on my localhost. But when I deployed the code to Amazon EC2, the functionality broke. I searched and found that EC2 IPs are blackisted by google. How should I fix this? I read that one way is to use Amazon SES, but can anyone tell how does it work? Is it just a verification policy enforcement thing and does it support sending out email from the said gmail account? Is there any other workaround? Edit

How to configure Amazon SES SMTP in PHP Laravel 5?

限于喜欢 提交于 2019-12-05 21:58:22
I have integrated Amazon SES in PHP Laravel5 project but i have troubled to send email's because i am getting this error, Swift_TransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "530", with message "530 Authentication required" Can anyone tell me how to configure Amazon SES.. Ensure you have configured your environment variables: like the following: MAIL_DRIVER=smtp MAIL_HOST=email-smtp.us-west-2.amazonaws.com MAIL_PORT=587 MAIL_USERNAME=AKIAJ3RS7BUIV7U2LCIQ MAIL_PASSWORD=Av9/1W4ZfcinolyP+8PNvjyQk7owOxaIMUehg53/QhnH MAIL_ENCRYPTION=tls I just

SES: Accessing email body inside lambda function

拟墨画扇 提交于 2019-12-05 20:24:22
问题 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(

upload .jpg image attachment in mail using AWS SES from node.js

∥☆過路亽.° 提交于 2019-12-05 12:09:28
Below is the code from https://github.com/andrewpuch/aws-ses-node-js-examples where there is an example to send and email with attachment, I have modified the code to fetch a image file from aws s3 and and send it with mail as attachment, when i did it for an text file it work perfectly, but when I have sent an image, in the mail I was not able to see the image since it is corrupted. when I tried opening with apple photo app it has shown that meta data is missing, also I have added Content-Transfer-Encoding: base64 in the header of the mail, when I tried with utf8, utf-8 and UTF-8 in Content

Special Characters in Amazon SES

為{幸葍}努か 提交于 2019-12-05 11:54:08
I'm using AWS SDK for PHP ( https://github.com/aws/aws-sdk-php ) to send emails using Amazon SES. Here's the code: <?php require 'vendor/autoload.php'; use Aws\Ses\SesClient; $client = SesClient::factory(array( 'key' => 'XXXXXXXXXXXXXXXX', 'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'region' => 'eu-west-1' )); $result = $client->sendEmail(array( // Source is required 'Source' => 'Télécom Co <email@address.com>', // Destination is required 'Destination' => array( 'ToAddresses' => array('Grégory Smith <another_email@address.com>') ), // Message is required 'Message' => array( // Subject is

Email opened/not tracking from nodejs nodemailer

人盡茶涼 提交于 2019-12-05 10:46:36
What I know I want to implement the email opened/not tracking in one of my websites. after searching i found that email-opened/not tracking is done by sending an embedded image along with email(typically 1 px transparent). when some one opens the email and if they allow images then we get a req for the image and we track that. what i am using to achieve what i know I am using MEAN stack for the project and nodemailer for sending emails with amazon ses as sending service. Problem I am able to send the embedded images using above technologies but the problem is in node mailer, you have to attach

Why does Amazon EC2 limit port 25? [closed]

落花浮王杯 提交于 2019-12-05 02:25:59
It says here ... Amazon EC2 imposes default sending limits on email sent via port 25 and throttles outbound connections if you attempt to exceed those limits. To remove these limits, submit a Request to Remove Email Sending Limitations. You can also connect to Amazon SES via port 465 or port 587, neither of which is throttled. Why doesn't it throttle ports 465 and 587? Why doesn't everyone use these ports instead of 25 and avoid the throttling issue altogether? To be clear on SES sending limits, you have to understand there are two types of limits: Maximum Send Rate and Sending Quota Apart

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

谁说胖子不能爱 提交于 2019-12-04 23:20:33
问题 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