go-gomail / gomail

The best way to send emails in Go.
MIT License
4.3k stars 570 forks source link

Is the method "DialAndSend" concurrency safe? #146

Open culionbear opened 4 years ago

culionbear commented 4 years ago

Do I need a lock for this method "DialAndSend"; like this: emailLock.Lock() err:=emailHandle.DialAndSend(emailContent) emailLock.Unlock()