Clear RCPTs on MAIL
This commit is contained in:
parent
ea11f4cf6c
commit
2c484d44a7
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user