Can smtp client add a flag option set to ignore error that address is invalid?
In my php program, the phpmail ignore the option in default, I want set gomail set it too, it could set to false as default, make the behavior is extraly like before.
Like this:
dialer := gomail.NewDialer(conf.SMTP.Host, conf.SMTP.Port, conf.SMTP.Username, conf.SMTP.Password)
dialer.SetIgnoreAddressInvalid(true) // if have not this call, the behavior should same as before.
err := dialer.DialAndSend(mail)
if err != nil {
return err
}
Can smtp client add a flag option set to ignore error that address is invalid? In my php program, the phpmail ignore the option in default, I want set gomail set it too, it could set to false as default, make the behavior is extraly like before. Like this: