Skip to content

SendTimeout improved

Compare
Choose a tag to compare
@xhit xhit released this 27 Oct 03:18
· 89 commits to master since this release

iota corrections and SendTimeout improved

  • new private function sendMailProcess for send the mail. Function is called in private function send
  • improved SendTimeout, if 0 then send call directly to sendMailProcess, else, sendMailProcess is called in goroutine and return the result in channel smtpSendChannel if timeout never happens
  • change direction of iota for encryption, encoding, and contentType (this don't break anything)