Allow customer to send me email - node.js

I'm bulding website where I want to allow future customers to send me an email. I'm using Node.js to handle sending and thought SendGrid would be good solution. There's actually problem, because SendGrid requires me to define sender and that's impossible because I'd like to customer fill form with his email, etc so I would get this data on my inbox. Is it even possible with SendGrid or maybe there's other tool that would fit me better?
Thanks in advance

what I have implemented in the past was a solution where the application sends an email to it self, and the email address of the user was added to the email header reply-to, this way whenever somebody with the access to the email client would press the Reply button, the user's mail would be the destination.
Example:
admin#yoursystem.com ---> Sends an email to ---> admin#yoursystem.com (with the user's message and his email address in the mail header reply-to).

Related

Link inside email sent by nodemail is being activated before being actually clicked by user

I'm sending emails using nodemail to verify user emails. The link in the email is a get response which then updates my database. This all works normally when I am in localhost: nodemail sends the email, the user receives the email, clicks the email and triggers the get response. However, when I deploy this to Railway.app, the link gets activated and triggers the get response the second the email arrives in the user's mailbox. I'm guessing this is probably happening because Gmail is 'clicking' on the email to make sure its safe or something, but I have literally no other clue as to why this is happening or solutions to this.

Dealing with bounced emails

Currently we are using AWS SES to send an authentication email to the user. (This email is not related to the usual login/register authentication, it's our own)
The email address is entered by the user and we are sending one and only one email per email address.
This leads to many bounced emails and AWS suspended our service (around 9000 sent emails and 15% bounce rate).
My question:
How to deal with this problem? Users will mistype their email all the time. There is no way to verify if an email is valid without sending an actual email, right? That means that all SMTP providers will suspend our ability to send emails sooner or later.
Using nodejs to send the email but that is not really relevant I think.
Check the bounces by adding a sns topic and subscribe to it to get more information when bounces emails. (It's not always because of faulty email)
Ask users to enter their email address twice
There are some services out there that you can pass email addresses to that will give you a classification as to how likely the address is to be a “good” address
Here is a document from AWS which describes your problem:
https://aws.amazon.com/blogs/messaging-and-targeting/what-do-i-do-if-my-registration-emails-themselves-have-high-bounce-rates/

Get original email headers of forwarded email using domain-wide-delegation

We have all spam and phishing emails being forwarded to an IT department for review. We currently have individuals downloading the original email in their gmail inbox and then attaching it to an email to the spam box. This has caused a lot of complaints from less technical users.
I am trying to build a python script that can read forwarded emails and then use domain wide delegation to access their email boxes and retrieve the original headers of the forwarded message.
Do any of the fields in the gmail headers stay constant when forwarding an email so that a forwarded email can be used to query the original email in a users inbox ?
The current method that I have tried reads the message ID's of the spam box, retrieves the message, identifies the sender and messageID's of the messages in the spam box and then uses domain-wide-delegation to query the mailbox of the sender for the original message. This fails however as Gmail messageID's and threadID's of the forwarded emails don't match the original email.

How to know when user logged in with gmail has received an email NODEJS

I am developing a web app which consists in parsing users emails and then applying some templates and other stuff.
After the user has logged in with his gmail and give me permissions to read the email, the app can read and parse emails just fine, the only problem is that I do not know when he recieved a new email.
People have suggested me to make a function that from time to time checks if theres a new email but my goal is to avoid that as much as possible.
Also, i've checked nodejs email listener but it requires user email and password which I do not have (I only have the token with the permissions to make requests in gmail api nothing more).
So to put it simply, how can the server know when user has recieved an email in his gmail inbox.
Thank you
When User Login send A E-mail
by using Nodemailer
for More Info https://nodemailer.com/about/

Choose email account before sending mail?

I am creating a application with mail sending functionality. I am sending mail using MFMailComposeViewController. What I want to do is if there are multiple Mail accounts configured on user device then before sending mail it should ask for the sender email account. That from which user wants to send mail.
Is there any way to do this or this is provided by default. I am working on simulator so can't test right now.
Thanks,
First you need to set multiple accounts in your mail app. If you have multiple accounts there than while presenting MFMailComposer View there in from field it will allow you to choose your mail account from which you want to send mail. Its a default behaviour of Mail Composer.
Hope this helps :)

Resources