X509 certificate signed by unknown authority
Using the LAN email
ESMTP
I have this problem too ,can you have resoves ,thanks
in windows ,it is ok ,but in linux ,it doesnt work .
Hi,
I remember I had this problem myself some time ago and did a small test that fixed it: https://github.com/scorredoira/basicSmtp/blob/master/smtp.go.
I will check it again to integrate it.
thanks
Hi , I modify some codes in smtp.SendMail() : Befor : if ok, _ := c.Extension("STARTTLS"); ok { config := &tls.Config{ServerName: c.serverName} if testHookStartTLS != nil { testHookStartTLS(config) } if err = c.StartTLS(config); err != nil { return err } }
After: if ok, _ := c.Extension("STARTTLS"); ok { config := &tls.Config{ServerName: c.serverName,# InsecureSkipVerify:true} if testHookStartTLS != nil { testHookStartTLS(config) } if err = c.StartTLS(config); err != nil { return err } } Then ,it works .