Hi,
You're using the SendMail function. That function tries to use TLS if
the server advertises it. In this case, the server does advertise it,
but the certificate is self-signed and expired.
A workaround would be to copy the SendMail code into your own program
and skip the StartTLS call.
Mikkel
Hi,
You're using the SendMail function. That function tries to use TLS if
the server advertises it. In this case, the server does advertise it,
but the certificate is self-signed and expired.A workaround would be to copy the SendMail code into your own program
and skip the StartTLS call.Mikkel
Some would disagree that ignoring an expired certificate is better.
SendMail is intended to be an easy way to send email with sensible
default behavior. Hopefully it covers most cases, but for those it
doesn't, the other functions in net/smtp are available.
- Evan