guileen / node-sendmail

send mail without setting up a SMTP server
http://guileen.github.com/node-sendmail
MIT License
559 stars 110 forks source link

[Question] Setting a timeout #46

Open ghost opened 6 years ago

ghost commented 6 years ago

How does one set a timeou when sending an email?

GreenPioneer commented 6 years ago

do you mean like node setTimeout(function(){ sendmail() },1000)

https://nodejs.org/dist/latest-v8.x/docs/api/timers.html#timers_settimeout_callback_delay_args

ghost commented 6 years ago

I do not. I mean setting a maximum time to spend trying to send the email, e.g. if it’s not done within X milliseconds, abort.

GreenPioneer commented 6 years ago

I think that's a great feature request

GreenPioneer commented 6 years ago

@BamItsPixel any interest taking a stab at it and submitting a PR?