Commit Graph

22 Commits

Author SHA1 Message Date
slavikm 4291610152 Added an option to manually set filename of attachments
Fixes #55
Fixes #56
2016-04-01 10:05:10 +02:00
Alexandre Cesaro 84856b343c Fixed a bug when using an empty name in SetAddressHeader
Fixes #54
2016-03-20 17:20:50 +01:00
Alexandre Cesaro db70192787 Provided a way to specify the encoding of a message part
This commit introduces a minor backward-compatibility break:
Message.SetBody, Message.AddAlternative and
Message.AddAlternativeWriter now accept a new variadic argument.

Since this argument is optional, in almost all cases there is
nothing to change. That is why Gomail version number wasn't bumped.

Fixes #47
2015-12-12 16:40:02 +01:00
Alexandre Cesaro 19acfc29a0 Improved doc on SetBody and AddAlternative
Fixes #48
2015-12-08 14:20:19 +01:00
Alexandre Cesaro df6fc79d10 Fixed a bug in AddAlternativeWriter
AddAlternativeWriter was replacing the message body instead
of adding a body part.

Fixes #44
2015-11-05 20:31:01 +01:00
Alexandre Cesaro 03dbed963f Added examples 2015-08-23 18:55:53 +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 4586cb75ac Changed the internal representation of a part 2015-07-29 22:47:37 +02:00
Alexandre Cesaro 07a1f385b7 Simplified some code 2015-07-29 22:47:37 +02:00
Alexandre Cesaro d49395d6c9 Improved documentation 2015-07-29 22:47:37 +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 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 31a7bd9a49 Renamed files 2015-07-29 22:47:36 +02:00