Some examples of sending and receiving emails with Node.js.
This uses the following libraries:
- emailjs for sending email
- node-imap for receiving email
- mailparser for parsing received emails
Copy config.json.example
to config.json
and enter your email account details.
Run coffee send.coffee
to send yourself an email with an attachment.
Run coffee read.coffee
to receive the sent email and write the attachment back to disk with a new name.
Hello Sir,
I am trying to use u r code for sending and receiving mail purpose.I am able to send msgs with attachment but while m receiving it gives error .
Error:
imap.ImapConnection is not a function.
can u please look into that.
Regards,
Harshad