Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to receive email using nodemailer

I am using node.js and nodemailer and I am able to send email to a dedicated gmail account.

However, I want to connect to the gmail account as a client and receive all emails that are sent to that gmail account.

All of the examples here on stack overflow regarding nodemailer are about sending email. I cannot find any thing about receiving email.

How do I do this?

Thanks,

Andres

like image 511
Andres Gonzalez Avatar asked May 21 '15 00:05

Andres Gonzalez


People also ask

How do you send and receive emails?

Create and send an emailSelect Home > New Email. Add recipients, a subject, and a message in the email body. Select Send.

How do I use Nodemailer with Gmail 2022?

To get Gmail working with nodemailer, most times, all you have to do is configure your google account by allowing access to "less secure apps" from the security. With this enabled, you could use your Google email address and password for nodemailer and start sending emails right away.

How many emails can Nodemailer send?

The default value is 100 which means that once a connection is used to send 100 messages it is removed from the pool and a new connection is created. Set maxConnections to whatever your system can handle.


1 Answers

well actually nodemailer seems to be a "send e-mails" library only (cf http://www.nodemailer.com/)
you may take a look at http://mailin.io/ (not tested personally ..)

like image 142
Mahmal Sami Avatar answered Sep 28 '22 13:09

Mahmal Sami