Commit Graph

91 Commits

Author SHA1 Message Date
lovezsh b65f60b163 feat: go mod support 2024-03-19 20:05:52 +08:00
Alexandre Cesaro 81ebce5c23 Fixed a typo 2016-04-11 23:29:32 +02:00
Alexandre Cesaro e4bd87ad6e Set a 10 seconds timeout in Dial 2016-04-11 23:24:34 +02:00
Alexandre Cesaro 92eaa13340 Made the error clearer when an address is invalid 2016-04-11 23:18:11 +02:00
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 bd0e445b57 Do not insert a newline as the first character of a header
It is closer to Gmail behavior for example.
See #53
2016-03-30 19:05:19 +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 060a5f4e98 Added automatic folding of long header lines
Fixes #53
2016-03-16 23:42:32 +01:00
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
Alexandre Cesaro 6ea1c86967 Fixed the name of the last example 2016-03-05 17:44:05 +01:00
Alexandre Cesaro 0773d147cc Added an example using the CRAM-MD5 authentication mechanism
Fixes #52
2016-03-05 17:35:32 +01:00
Alexandre Cesaro 3f18d6d1a6 Fixed the FAQ example
Fixes #50
2016-03-05 17:24:14 +01:00
Alexandre Cesaro dc65e3e648 Added Go 1.6 to Travis 2016-03-05 17:16:47 +01:00
Alexandre Cesaro 97fee66abd Removed the support section of the readme 2016-03-05 17:16:04 +01:00
jirkadanek 4efb40e03f fixed a typo 2016-03-04 08:28:58 +01:00
Alexandre Cesaro fbb71ddc63 Fixed an example name 2015-12-12 17:01:51 +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 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