Options to receive emails from a contact form in a node application - node.js

I am working on a MERN stack and I can send out email to users using nodemailer. However, I would like the users of the application to be able to send email to the admin too. So far, it is the admin who can send out emails to users. How about the option for any to click the contact page, fill in their name, email address and email body and send out email to the admin of the application.
Is this possible with nodejs? What are my options? I checked online and I keep seeing the option to send out email which I have already done.

Related

Using Intercom Email feature to send a verification email

I can send a email using outbound -> email feature in the intercom dashboard. I would like to know if I can use that as a api so when user finish complete a signup form it will send an email from that data. is it doable with nodejs? an help would be greatfull.

Allow customer to send me email

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).

How to generate a link user can click in the email that goes to the NodeJS backend?

A user receives an email sent using NodeMailer with a clickable link. Now, when the user clicks the link, it should make a request to the backend with the email of the user and a hash embedded in the link. How do I do this?
I am using MySQL, NodeJS, ExpressJS for my backend and NodeMailer for sending emails.
While creating the node mailer template you will have access to the user email, add that email and hash to the hyper link.
Create a get route in your server "/users/:email/:hash".
When user clicks on the link you can access the email - req.params.email & hash - req.params.hash

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