Commit graph

48 commits

Author SHA1 Message Date
harald 5203727773 Extended configuration to allow to set the hostname of the smtp client.
The value  configured by 'clienthostname' is used by the gomail client
as hostname in the HELO command.
2019-11-06 17:57:05 +01:00
Michael de Wit f39d409f1c
Merge pull request #32 from macejiko/master
Docs. Example for drone >=1.0 w settings
2019-10-19 10:22:45 +02:00
Bohdan Sukhov a4dc88cd5e Docs. Example for drone >=1.0 w settings 2019-10-07 12:47:52 +03:00
Matthias Wimmer 44396c108b Make attachments optional (#31)
Don't fail if a attachment file doesn't exist.
2019-09-06 22:43:01 +02:00
Michael Schlies 17393400a4 Support multiple attachments (#29)
* Support multiple attachments
* Support single attachment syntax in addition to multiple
* Re-add import Goland removed while optimizing imports for me.
2019-08-23 18:06:45 +02:00
somax 20edd9c7e3 fix: invalid address 2018-02-27 19:00:49 +08:00
Michael de Wit 3d20d75dd8 Trigger automated build 2018-02-08 17:00:26 +01:00
Michael de Wit 0c46942410 Update to Docker Hub automated build 2018-02-08 16:50:01 +01:00
Michael de Wit 0dbfcce537 Update docs for Drone 0.6 and up 2018-01-16 16:48:28 +01:00
Michael de Wit 4242a88488 Fix issue in README example, close #21 2018-01-09 09:33:35 +01:00
Andreas Johansson 5520c5e8fe Fixed example configuration (#18) 2017-09-22 14:04:44 +02:00
Michael de Wit 982dc51fc6 Add ability to attach a file to the sent mail(s) 2017-08-31 11:14:08 +02:00
Michael de Wit f8088a6429 Exit with error code 1 if a recipient address is incorrect (#16) 2017-07-12 15:48:45 +02:00
Michael de Wit ca0f94098b Fix an issue where a mail would be sent to the same recipient twice 2017-01-24 14:39:13 +01:00
Michael de Wit c9430e82e6 Add a temporary workaround for missing DRONE_BUILD_STARTED by using DRONE_BUILD_CREATED. Fixes #14 2017-01-24 14:20:41 +01:00
Michael de Wit 0888ac7f7e Add all Drone env variables to template context 2017-01-17 10:58:35 +01:00
Michael de Wit 89bfb86f8f Fix a bug in the Makefile 2017-01-16 15:15:52 +01:00
Michael de Wit 6917c02a54 Finish repository migration 2017-01-16 15:06:10 +01:00
Michael de Wit f128c947ab Refactor plugin to be compatible with Drone 0.5 (#13)
* Refactor plugin to be compatible with Drone 0.5

* Add vendor files

* Re-add logo.svg, make loading environment from .env file optional, and use drone-go/template

* Fix README

* Fix issue with date formatting, update the DOCS, and improve types

* Add working directory and volume mount to README example
2017-01-16 13:20:59 +01:00
Bugagazavr 73b37a0fd6 Merge pull request #9 from igoraj/master
Support email notification without SMTP auth.
2016-04-22 16:29:21 +04:00
Igor Ajdišek f5a7199254 Support email notification without SMTP auth.
Even if .drone.yml does not specify username and password,
gomail.NewPlainDialer is still populated with them - albeit empty -
which means they are still being sent to SMTP server. In case of
Google's smtp-relay.gmail.com this will result in an error, even
if CI's server IP address is added to exclusion list allowing it to
skip auth entirely.

This commit constructs gomail.Dialer without username and password
if there was no username found in .drone.yml.

* Constructs gomail.Dialer without username when no username in .drone.yml
* Replaces gomail.NewPlainDialer with gomail.NewDialer
2016-04-22 13:55:28 +02:00
Thomas Boerger 725e06f997 Merge pull request #8 from drone-plugins/feature/additions
Makefile, gitignore and MAINTAINERS improvements
2016-02-26 00:02:01 +01:00
Thomas Boerger b8b6558f87 Reference to DOCS.md from README.md for usage information 2016-02-26 00:00:29 +01:00
Thomas Boerger 98042fa960 Updated gitignore to respect also coverage.out 2016-02-21 11:38:17 +01:00
Thomas Boerger 1f7f07e747 Updated maintainers file, added names and athieriot 2016-02-21 11:20:00 +01:00
Thomas Boerger 6ae77a6b5c Make the builds reproducable based on commit sha 2016-02-21 11:06:40 +01:00
Thomas Boerger a352b7639e Removed unused CI_BUILD_NUMBER from makefile 2016-02-21 10:43:08 +01:00
Thomas Boerger 2ecf539855 Added all task as first task to makefile 2016-02-21 10:38:53 +01:00
Thomas Boerger 4001636097 Merge pull request #7 from drone-plugins/feature/premailer
Added premailer to inline all css rules
2016-02-03 10:55:47 +01:00
Thomas Boerger 36ac5a2015 Added premailer to inline all css rules 2016-02-02 11:48:22 +01:00
Thomas Boerger 7913a81e98 Merge pull request #4 from drone-plugins/feature/skip-verify
Integrated skip verify, gomail and templates
2016-02-01 20:16:10 +01:00
Thomas Boerger 8484730b82 Integrated skip verify, gomail and templates
I have switched the mail sending mechanism to gomail to get more power
out of the sending method. Beside that I have added a flag to skip
certificate verification.

On top of that I have integrated the drone templating to make it
possible to overwrite the email templates optionally.

To be more compatible I have created a plaintext message format with the
help of html2text as well.
2016-02-01 12:55:41 +01:00
Thomas Boerger c0654081b5 Merge pull request #5 from drone-plugins/feature/unification
Unification: Drone config, Makefile, structure and badges
2016-01-26 13:01:47 +01:00
Thomas Boerger e558964bc8 Unification: Drone config, Makefile, structure and badges 2016-01-26 13:00:13 +01:00
Thomas Boerger 146cd70b2d Merge pull request #3 from drone-plugins/feature/docker-task
Added make task for building docker container
2015-12-15 12:50:43 +01:00
Thomas Boerger 4068fc88ea Added make task for building docker container 2015-12-15 00:48:25 +01:00
Jack Spirou 969221aae8 Merge pull request #2 from drone-plugins/feature/unify
Some streamlining of the next plugin
2015-12-13 10:27:58 -06:00
Thomas Boerger 9d5c1e3333 Some restructuring of code, no functional change 2015-12-11 10:40:37 +01:00
Thomas Boerger 40520edfdb Integrated a makefile 2015-12-11 10:40:37 +01:00
Thomas Boerger 49937bafb0 Removed empty lines 2015-12-11 10:40:37 +01:00
Thomas Boerger 07a1259df4 Streamlined the documentation 2015-12-11 10:40:37 +01:00
Brad Rydzewski 9c566da9a2 Updated MAINTAINERS file [CI SKIP] 2015-12-09 14:18:37 -08:00
Brad Rydzewski e1b50eec0e Updated MAINTAINERS file [CI SKIP] 2015-12-08 08:57:29 -08:00
Brad Rydzewski f0e521f90d Created MAINTAINERS file [CI SKIP] 2015-12-07 01:22:30 -08:00
Brad Rydzewski 474c2c7653 fixed spelling in docs [CI SKIP] 2015-11-10 17:58:02 -08:00
Brad Rydzewski fa69400d6c initial commit 2015-11-10 17:44:23 -08:00
Brad Rydzewski 790df28ae1 initial commit. compiles but hasn't been tested. needs docs too 2015-10-26 15:31:42 -07:00
Brad Rydzewski 275cbb8a6a Initial commit 2015-05-15 19:52:14 -07:00