You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to write a simple bot to forward all received messages to email using smtp, but I'm not very familiar with the js/npm language/eco system. Could you write a simple example to do this? Thanks a lot!
The text was updated successfully, but these errors were encountered:
varemail=require("./path/to/emailjs/email");varserver=email.server.connect({user: "username",password:"password",host: "smtp.your-email.com",ssl: true});// send the message and get a callback with an error or details of the message that was sentserver.send({text: "i hope this works",from: "you <[email protected]>",to: "someone <[email protected]>, another <[email protected]>",cc: "else <[email protected]>",subject: "testing emailjs"},function(err,message){console.log(err||message);});
If you have any issue with emailjs, feel free to post here and let me know the problem.
Hi, zixia. Your wechat library looks fantastic!
I want to write a simple bot to forward all received messages to email using smtp, but I'm not very familiar with the js/npm language/eco system. Could you write a simple example to do this? Thanks a lot!
The text was updated successfully, but these errors were encountered: