Receiving custom data from AWS SES webhook events as we do in sendgrid? - webhooks

I need to get custom data as part of email events (open, click, etc) sent from AWS SES.
For sendgrid I do (Java)
Personalization personalization = new Personalization();
personalization.addCustomArg("event_type", "SubscriptionDeliveryEmailEvent");
personalization.addCustomArg("event_source_type", "SubscriptionDelivery");
mail.addPersonalization(personalization);
How can I do the same for AWS SES? I couldn't even find a mention to it. (Java preferred pls :D)

AWS SES doesn’t provide any type of webhook out of the box for any type of event (open, click...)

Related

How to use sns message filter to send to particular email?

Is it possible to send different message to different email endpoints having different subscription ARN.If possible suggest some way using message filtering.
All emails subscribed to same Topic .But requirement is to send rewards points balance based on email which is being fetched from a query either rest or dynamodb query.
It is not possible to customize Amazon SNS messages per-user. All recipients will receive the same message.
Yes, you can use Amazon SNS filtering to control which recipients get each message, but that isn't really a good idea for sending single messages.
I would recommend that you investigate Amazon Pinpoint:
Amazon Pinpoint is an AWS service that you can use to engage with your customers across multiple messaging channels. You can use Amazon Pinpoint to send push notifications, emails, SMS text messages, and voice messages.
It might be a better way to engage with your customers.

In aws pinpoint (NodeJS) how to trigger a email when custome event trigger by user

I am working on a NodeJs API which send a mail when New user added in AWS Pinpoint.
I need to trigger a mail when new user add in AWS Pinpoint or sign-in attempts or some transaction happens or credit in his/her account is less than 5.
I have already created a API which add and update user in AWS pinpoint as endpoints.But I stuck in, how to create a custom event which automatically do this task after updating the endpoint in AWS pinpoint.
I have referred https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Pinpoint.html link while trying to create custom event. But no proper solution found
you should only send an event, in the EndpointUser part of the payload, put your new user details, it will update the endpoint and will fire event, which you can catch with a campaign

How can I use cognito to create user accounts, but a different service for verification?

I am building an app that will be using Plivo or Twilio for user interaction and input.
I wanted to use AWS Cognito for user management, but for verification, they say a user must verify email or phone number.
I wanted to have the user interaction and verification come from the same phone number, so is there a way to set this up in Node.js somehow, where a text to a Plivo/Twilio number reroutes to AWS Cognito for verification?
Looking at the document, it seems that it is now possible to send emails and SMS using a third party.
It is unknown when it was released.
Custom Sender Lambda Trigger
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-sender-triggers.html
Custom SMS Sender Lambda Trigger
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-sms-sender.html
Custom Email Lambda Trigger
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-email-sender.html
You can leverage the custom auth flow to achieve this. Take a look on a example article we have here:
https://aws.amazon.com/blogs/mobile/customizing-your-user-pool-authentication-flow/
The idea is that you will explicitly do the calls you want to Twilio/Plivo from the lambda function.
Cognito UserPools does not intergrade out of the box with a third party.
And offers its own notification mechanism through SNS and SES services.
I would consider this option as well in your position.

Setup Email Receiving AWS SES

How can i setup email receiving
I have nodejs server I want to build endpoint for fetching all emails
My Options are:
Option1:
save all incoming email to mongodb then I'll fetch it on Mongodb
Possible Problems:How? I have local server for now.
Option2:
Save email on aws (if Possibe) then fetch it
The easiest thing for you to do will to setup aws ses to save incoming emails to a designated s3 bucket. Once it is in the bucket you can do what you want with it, or even better, set up an s3 event notification that triggers another call (a lambda function for example), each time the email is put in the bucket for you to do your downstream processing of it.
As part of the AWS infrastructure, Amazon SES can also take action on
your mail, such as delivering it to an Amazon S3 bucket, publishing it
to an Amazon SNS topic, calling your custom code through AWS Lambda,
integrating with Amazon WorkMail, or bouncing the mail back to the
sender.
http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email.html

AWS SES Email reply call the node api

I am developing an application on Nodejs-MongoDB and using AWS SES as mail server. In one case, the application has to send email to the user what I did perfectly using nodemailer plugins. But If the user replies on that mail, it will save to my database. I already created an api in nodejs which save the reply in database.
But I need to know the procedure how the replied mail calls my api with replied information.
I found AWS SES Receipt rule where one can set the rule for the receipt mail. Is there any proper approach to reach my requirement?

Resources