I came across this article describing how an email id can be verified without sending an email in PHP. I was wondering if something similar can be done with node (without using any external package).
I am relatively new to node.js.
Related
I am building a website where users are able to make appointment requests. The information goes to a mongo collection. Is it possible to send the information to an email as well as the mongo collection?
In other words, whenever the db receives a new entry I'd like for that entry to be sent to an email that I choose.
I would post some of the code but I don't have any context or idea where to start.
Yes it is possible.
You can google nodejs send email and you will find plenty of node modules that do that.
One example is Nodemailer module.
You will have a function where you store records to mongodb. Inside the same function, after insertion/update, you would call .sendMail function to send an email.
I need to build an email backend that can receive email, send email, store them in the db, like other all email services, such as Gmail or Yahoo.
Which module should I use to build such app? I searched about this, but it's all about nodemailer, which is just a sending module.
Depends on what you actually want with the backend.
For parsing mail messages i should use a package like mailparser. It tries to parse the source in different objects. Like to, cc, bcc, attachments, body etc.
For loading the messages, you can use one of the several IMAP clients. Store them with the mysql package.
Sending ofcourse with nodemailer.
The big question stays, what is the purpose of the backend. Creating a mail backend is not a easy task. Loading from IMAP and sending by SMTP is not the problem. But if you want create a service like Gmail or Yahoo, you need think about a lot aspects, like SPAM protection, queueing of mail, throttling of the outgoing mail and a lot more.
I am new to node.js where in my requirement is to grab received email subject, attachment and email body using node.js I am not able to find any solutions. Can anyone suggest me what kind of approach I should take.
I've read that nodemailer only permits to send mail (if I m not wrong).
You should use a librarie that allow you to receive message, like using POP3 protcole (https://www.npmjs.com/search?q=pop3)
I have developed web application in node.js, and now I want to fetch email(s) from gmail and store in my application database. I have read/checked mail-listener2, but it give me some error about authentication. I have raised issue for that, but I am still looking for a trusted library like this. Does anybody worked with this library, or any other solution for the same? In short I am looking for a code/sample/library which is fetch email(s) (including attachment and header detail (I need uniqueid/threadid of email, so I can make a ticketing solution) from G Mail account.
Thanks
I'm toying with an extension that interacts with Gmail, and am interested in auto-generating a "Welcome" email with setup instructions on install or when a new Gmail account is created with the extension already installed.
For some background, HelloSign for Gmail seems to do this, and is where the inspiration comes from. With the extension already installed, upon creating a new Gmail address, HelloSign sent me a "Setup Instructions" email almost immediately (Screenshot of email: http://screencast.com/t/C3v7hL1Chr). I have had the extension installed for quite some time, and don't recall receiving this email when I initially installed it, but may have just overlooked it at the time.
I'm not sure if there is a command built into the extension to generate this, or if they're just extracting the email address signed into Gmail and generating it on their own. I know the getAuthToken API will pull in data for the user signed into Chrome, but I can't find anything like this for Gmail.
I'm very new to all of this and the answer may be right in front of me, but I haven't been able to find it. Any input is greatly appreciated!