Alexandre Cesaro
33430073ec
Fixed a panic when a Message contains a nil header
...
Fixes #41
Fixes #42
2015-10-22 11:01:07 +02: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
b1e55520bf
Fixed a typo
2015-09-03 10:48:59 +02:00
Alexandre Cesaro
a45579cb68
Made it clearer that Gomail is not an SMTP server
2015-09-02 18:37:43 +02:00
Alexandre Cesaro
41f3572897
Updated go-nuts post link
2015-09-02 13:57:04 +02:00
Alexandre Cesaro
7c4e18080b
Bumped version to v2
2015-09-02 13:43:40 +02:00
Alexandre Cesaro
3d70844b0b
Improved introduction in README.md
2015-09-02 13:43:08 +02:00
Alexandre Cesaro
9b72905458
Improved example readability
2015-09-02 13:38:54 +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
809903b2a6
Added tests with Go 1.5 to Travis
2015-08-20 20:11:28 +02:00
Alexandre Cesaro
bdc1bd4b6e
Added a paragraph about the license in README.md
2015-08-20 20:09:30 +02:00
Alexandre Cesaro
10d67cb36c
Added examples
2015-08-20 20:07:45 +02:00
Alexandre Cesaro
17b3f1c73a
Removed Message.DelHeader
2015-08-18 22:20:31 +02:00
Alexandre Cesaro
8790779bce
Refactored file management
2015-08-03 22:57:38 +02:00
Alexandre Cesaro
36b58227ea
Moved the package description to doc.go
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
629d36f9e2
Updated CONTRIBUTING.md
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
9990d7c9fb
Improved the benchmark
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
9bc424b2ec
Removed the example from README.md
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
394a6b2fcd
Added examples
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
42c5f98096
Added a small performance tweak in getRecipients()
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
faa9a603a2
Fixed PLAIN authentication
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
1d59d94f4e
Fixed badges links
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
4586cb75ac
Changed the internal representation of a part
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
71e3f5a0b4
Added Travis and other badges
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
83af4db704
Updated README.md
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
07a1f385b7
Simplified some code
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
5a1ac3fca0
Bumbed version to v2-unstable
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
88beb2f13c
Added the Support section in README.md
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
9f055c687b
Added CHANGELOG.md
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
8a81f4ad6f
Added CONTRIBUTING.md
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
9775d1d734
Added an example
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
d49395d6c9
Improved documentation
2015-07-29 22:47:37 +02:00
Alexandre Cesaro
0002611a09
Removed obsolete text in README.md
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
867c4d1580
Fixed commented examples
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
3346e955b2
Lowered Go version requirement from 1.5 to 1.2
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
b01506efc6
Simplified variable name of Message
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
79f88c6aa1
Fixed a typo
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
69106c0cb2
Removed dead code
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
13385d50ea
Added method Reset() to Message
...
Fixes #31
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
cab7c5adfb
Added a buffer to Message and removed the buffer pool
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
9d308546b7
Made File struct more flexible
...
The File can now be streamed to the SMTP server directly without
being buffered into memory first.
Fixes #4
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
66c8b9ae4c
Changed body content type from []byte to func(io.Writer) error
...
It allows streaming the message body when sending an email instead
of buffering it to memory.
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
ac067c1594
Renamed export.go into writeto.go
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
8de74d4f48
Removed the Bcc header field when sending emails
...
This way of handling Bcc field is described in RFC 5322 section 3.6.3:
https://tools.ietf.org/html/rfc5322#section-3.6.3
It makes the code much more simple and efficient.
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
31a7bd9a49
Renamed files
2015-07-29 22:47:36 +02:00
Alexandre Cesaro
ea9c2b2d08
Fixed an error message
2015-07-29 22:47:36 +02:00