mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-24 11:56: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 {
|
func (s *SessionLocal) Mail(from string, opts smtp.MailOptions) error {
|
||||||
|
s.rcpt = s.rcpt[:0]
|
||||||
|
|
||||||
pk, err := utils.ParseAddress(from)
|
pk, err := utils.ParseAddress(from)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("parseAddress: %w", err)
|
return fmt.Errorf("parseAddress: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user