mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-04-29 08:46:28 +03:00
Clear RCPTs on MAIL
This commit is contained in:
@@ -21,6 +21,8 @@ type SessionLocal struct {
|
||||
}
|
||||
|
||||
func (s *SessionLocal) Mail(from string, opts smtp.MailOptions) error {
|
||||
s.rcpt = s.rcpt[:0]
|
||||
|
||||
pk, err := utils.ParseAddress(from)
|
||||
if err != nil {
|
||||
return fmt.Errorf("parseAddress: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user