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.
Hi guys,
This is my first post on github so please be gentle :-)
Same as nstewart, send works but read doesn't. However I get a different error message:
.>coffee read.coffee
TypeError: undefined is not a function
at Object. (a:\Documents\Webpages\nodejs\read.coffee:15:14)
at Object. (a:\Documents\Webpages\nodejs\read.coffee:7:1)
at Module._compile (module.js:460:26)
Where? Why isn't this code forked into a workable version (or maybe it is?)
Thanks,
Marco