How to send email notifications to a email group using AWS SNS? - amazon-sns

I am working on a task to send email notifications to a group of users from AWS SNS. I have created a topic and tested the notifications by sending it to my email. But now I want to send these email notifications to a group which contains at least 10 15 email IDs.
How to send email notifications to a group or email alias using AWS SNS ?

Amazon SNS sends notifications to Email alias by configuring it in the SNS Topic Subscription. I found out the problem with the Email alias of my org which was not allowing the push notifications from AWS.
I verified it by creating a email group in googlegroups.com and then allow anyone to push emails to this group and there I go. All the recipients in my googlegroup started receiving notifications from AWS SNS topic.
Make sure to check the filters/restrictions in your organization's email alias. If the email alias does not allow the push notifications/emails from AWS then you will not receive the email notifications even after configuring the topic subscription.

Related

Custom email address with AWS

There are a few solutions for this problem:
Using workmail
Using zoho free tier
setting up an ec2 email server
ses /s3 combination
I am following the tutorial from here
This is what I have:
domain: example.com(verified) & email: scilla#example.com
Rule Set
Rule with recipient scilla#example.com with action SNS topic example_email
personal_email subscribed to sns topic example_email
Resend verification
I've got the confirmation that my email is subscribed to the sns topic. I can see the status is confirmed in the Subscriptions and the topic is example_email.
After I configured scilla#example.com with action to SNS topic example_email and subscribed personal_email to topic example_email, I would expect to receive the verification when I resend it.
The verification is pending.
How could I debug this problem?
Am I missing any steps?
Do I need special configuration in Route53?
Note: I was able to verify my personal email with SES.
The tutorial works fine.
To be mentioned: you'll only be able to set the rules in 3 AZ
This system can be treated as a notification system.
If you send an email to that address, you'll get just the title of the email, not the content.

How my own backend server can get the device token (FCM) of specific user to send push message?

I have backend service and have to send push message to specific user(IOS device).
So Should the device send token FCM to the service directly after get it from Firebase?
Is it only one way?
Or I can get FCM + customer user name(to know which user sent it to me) from Firebase?
Thank You in advance.

firebase function triggered on email received

Is there a way to trigger a firebase function or create an item in Firestore when an email is received on Gmail or Outlook.
I'm trying to recreate on of ServiceNow's features where in if the helpdesk email address has received an email, it will automatically create a ticket (to firestore) out of it.
Thank you!
Here is one possible solution for Gmail (untested):
According to the Gmail API documentation:
The Gmail API provides server push notifications that let you watch
for changes to Gmail mailboxes... Whenever a mailbox changes, the Gmail
API notifies your backend server application.
...
The Gmail API uses the Cloud Pub/Sub API to deliver push notifications.
Since you can trigger a Cloud Function whenever a new Pub/Sub message is sent to a specific topic you can do as follows:
Set up a Cloud Pub/Sub client.
Using your Cloud Pub/Sub client, create the topic that the Gmail API should send notifications to.
Configure the Gmail account(s) to send notifications for mailbox updates
Write a Cloud Function that is triggered whenever a new Pub/Sub message is sent to this topic and execute the desired Business Logic (e.g. write to Firestore)
For Outlook, this SO answer indicates that it should be possible to call an API when a new mail is received. You could either call an HTTPS Cloud Function or directly the Firestore REST API.

firebase cloud function code to send mail from gmail to other gmail account

When customers make an order we need to send a mail to sellers, is it possible by firebase cloud function sent from Gmail account to other Gmail account (with free plan)
You will find here an official Sample for a Cloud Function that sends e-mails through Gmail: https://github.com/firebase/functions-samples/tree/Node-8/email-confirmation
Since it is Gmail it is a Google-owned service and therefore you can use it with a free Spark Plan.
As detailed in this sample documentation, "be aware that Gmail has an email sending quota": no "more than 500 recipients in a single email and or (no) more than 500 emails in a day sent.", see https://support.google.com/mail/answer/22839.
The sample documentation explains that:
If you are planning on sending a large number of emails you should use
a professional email sending platform such as Sendgrid, Mailjet or
Mailgun.
Using Sendgrid, for example, is very easy but then you would need to be on a payed Plan because Sendgrid is not a Google-owned service.

Event publishing to Amazon SNS destination

I am getting account level notifications from Amazon SNS. But I am not getting event publishing notifications.
I set up configuration set and gave sns destinations as endpoints. In account level notifications we get bounces, complaints and delivery notifications. But I want open and click tracking for emails. So I created event publishing events. I am giving configuration set name while I am sending email.
Do we need to set sender email as AWS account email or we can any verified email?
Is there any way troubleshoot that configuration set is passing or not?

Resources