Commit Graph

58 Commits

Author SHA1 Message Date
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
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
Alexandre Cesaro a7fe250544 Used the new quotedprintable package from the standard library 2015-07-29 22:47:36 +02:00
fzerorubigd 11b919ab49 remove dependency to quotedprintable.v1
since the v2 is already used in gomail.go

Closes #29.
2015-03-20 14:28:19 +01:00
Alexandre Cesaro 74f94c0f26 Improved memory consumption
Closes #25
2015-03-17 15:40:16 +01:00
Alexandre Cesaro 19744cb73d Fixed name encoding in adress headers
Closes #24.
2015-03-14 20:42:51 +01:00
Alexandre Cesaro cb55422c78 Improved performances by using a bytes.Buffer pool 2015-03-14 20:40:33 +01:00
Alexandre Cesaro 6a52a50597 Added quotes to names in address headers
Closes #23.
2015-03-14 20:40:32 +01:00
Alexandre Cesaro c7ca0f5da9 Fixed date headers
Closes #21.
2015-02-28 16:46:44 +01:00
Alexandre Cesaro 6805982221 It is now possible to set the Content-ID of embeded files
Closes #20.
2015-02-18 22:27:23 +01:00
Alexandre Cesaro de623e612d Added the LOGIN authentication mechanism support
Closes #16.
2015-02-10 19:22:29 +01:00
Mateusz Czapliński d7294067b8 Fix to emit at most 76 chars per line
From RFC 2045 (and also from looking at other packages), it appears that
line length limit is actually 76 characters, not 78. Also, this fixes
attachments broken before for a certain webmail client (roundcube).

Closes #18.
2015-01-20 15:11:08 +01:00
Alexandre Cesaro 512e469f62 Fixed a bug when embedding multiple files.
Closes #12.
2014-12-23 11:23:01 +01:00
alexcesaro b4e3113e2d Added a new encoding: Unencoded 2014-10-28 08:35:50 +01:00