Commit Graph

10 Commits

Author SHA1 Message Date
Alexandre Cesaro afff51fd8c smtpSender.Send() now automatically redials in case of a timeout 2016-03-14 13:43:57 +01:00
Alexandre Cesaro 5ceb8e6541 Dialer.Dial() now automatically uses CRAM-MD5 when it's available
Also deprecated NewPlainDialer() in favor of NewDialer().

Fixes #52
2016-03-06 19:17:01 +01:00
Lorenzo Villani c80f25c521 Make Dialer's domain configurable
The net/smtp library sends "localhost" unless otherwise instructed. This
commit adds a new "LocalName" field to the Dialer struct that allows
users to override what gets sent with SMTP's HELO command.

Fixes #40
2015-10-22 11:00:33 +02:00
Alexandre Cesaro 03dbed963f Added examples 2015-08-23 18:55:53 +02:00
Alexandre Cesaro 1e43a4157e Made NewPlainDialer arguments order more intuitive 2015-08-23 18:54:21 +02:00
Alexandre Cesaro b01506efc6 Simplified variable name of Message 2015-07-29 22:47:36 +02:00
Alexandre Cesaro 4f6286485b Replaced Message.Export by Message.WriteTo
Message now implement io.WriterTo. It allows streaming
the message directly to the SMTP server without buffering it
first into memory.
2015-07-29 22:47:36 +02:00
Alexandre Cesaro 4b313106fd Renamed SMTPDialer into Dialer 2015-07-29 22:47:36 +02:00
Alexandre Cesaro f01c0a3645 Removed LoginAuth and updated NewPlainDialer to handle LOGIN auth 2015-07-29 22:47:36 +02:00
Alexandre Cesaro 01674ee5b6 Replaced Mailer type with the Sender interface and SMTPDialer type
Fixes #10
Fixes #17
Fixes #32
2015-07-29 22:47:36 +02:00