how to build an email functionality in Node js? - node.js

I need to build an api for email integration for every client (like yahoo,gmail,outlook) using same api. For gmail I have used nodemailer. And in that I am using refresh token for security. And in that also I am able to integrate email for only one user. I need to send emails to the user and also they can reply to that same email.
Anyone know any clue how to do this. Please help.
Thanks in Advance.

Related

How to link firebase phone and email authentication for web? [duplicate]

I am developing an app wherein the users use either email and phone to perform registration.
Users can enter their email or phone for log in, I want the same OTP to be sent to mobile and email simultaneously. Please Help!
If you want to work only with Firebase Authentication, then there is not any suitable solution that meets your requirement.
Some limitations you can find with Firebase are Firebase Authentication Limits and Phone number sign-in limits.
However the alternative solution is using third-party SMS gateway. through with you can send OTP to phone number as well as to email also simultaneously.
Lets assume you already have mechanism to generate OTP and verify OTP from android app.
Now the problem is how to send OTP to the user's email.
One of solution is using MailGun service to send email from your backend.
Also, if you want to templating your email, you can use library called handlebar

Can I send mail to users from nodejs contact page using nodemailer?

Is it possible to send messages to the usere from my gmail account using nodemailer in my Nodejs website?
Yes... it's possible. If you are a beginner, then I would request you to follow the official docs for complete assistance.
https://nodemailer.com/about/

Using Azure SendGrid to send emails from my work email to other work emails

I set up an Azure SendGrid resource in my company's Azure subscription, got my API key and wrote a C# script to send emails. It works, but the emails go to spam with an SCL=6. I expect this is because I am doing no domain authentication. (Please bear with me as I try to describe my situation, I'm still learning a lot about all this). I am sending the emails through my work/enterprise email account (XYZ#company.com) and they are going to other enterprise accounts on the same domain (company.com). My company is a large tech company with a very well known domain. I am just a user on the enterprise network as a normal vendor/employee, with this setup I don't know how I would touch DNS/SPF/DKIM options, which from what I've been reading are the main first steps to authenticate myself as the sender.
I guess my main question is: Can SendGrid be a possible solution to what I am trying to do? I want to send ~250 emails programatically, each from a template so I can substitute in recipient name and specific info, and I can do all that through C#. But is there a way I can authenticate myself so my emails do not go to spam? If not, are there alternative solutions? I'm just trying to avoid having to manually send ~250 customized template emails through Outlook.
Let me know if I need to provide more info, all answers are appreciated! Thank you!

How to use SharePoint REST API to send outlook invitation (I know how to send email)?

Thanks for helping me with this issue.
I am trying to send a calendar invitation through the SharePoint Rest API, but couldn't find any documentation about it.
I am able to use sp.utilities.utility.sendemail to send email, and I have the correct ics file as well, just not sure where to put.
Can someone please provide me with a post example of sending outlook invitation by using SharePoint REST API.
Many Thanks
This is the url for O365 calender api :
https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations
This may resolve your issue.

Implementing Gmail auth in Flask

I'm working towards setting up Gmail authentication in a Flask app. There is this extension of Flask - but I can't find a clear idea as to how I'd go about using it to let people log into the app using their Gmail accounts. Any pointers? Much appreciated!
This might give you an idea
https://developers.google.com/gdata/faq#GmailAtomFeed
It says
"Does Gmail have a Data API?
No, but you can use http://gmail.google.com/support/bin/answer.py?answer=13465 Gmail's Atom feed with AuthSub or OAuth 1 to request read-only access to a user's unread messages. The scope should be set to https://mail.google.com/mail/feed/atom/. An example query would be:
GET https://mail.google.com/mail/feed/atom/"

Resources