100 Commits

Author SHA1 Message Date
ebtasam-faridy 3ff6557051 Merge pull request #7 from harness-community/CI-20803
fix: [CI-20803] increasing go-mail version to remove vulnerability
v4.0.2 v4.0.2-debug
2026-03-02 19:57:35 +05:30
Ebtasam Faridy f9e2b0cd9f fix: [CI-20803] increasing go-mail version to remove vulnerability 2026-02-26 14:50:26 +05:30
ebtasam-faridy 40a9df7a10 Merge pull request #6 from harness-community/CI-20805
fix[CI-20805]: use WithTLSPolicy instead of WithTLSPortPolicy to preserve user-configured SMTP port
v4.0.1
2026-02-18 01:19:51 +05:30
Ompragash Viswanathan 5b0a93b192 fix: use WithTLSPolicy instead of WithTLSPortPolicy to preserve user-configured SMTP port
WithTLSPortPolicy calls SetTLSPortPolicy, which checks `c.port == DefaultPort`
(25) to decide whether the port was explicitly set or left as default. When a
user configures port 25 — common for internal relay hosts that accept plaintext
SMTP — the guard condition evaluates true and the library silently overrides the
port to 587 (DefaultPortTLS) with a fallback to 25.

This causes a two-stage failure in environments where port 587 is unreachable:

  1. The primary dial to host:587 blocks for the full 15-second connection
     timeout (go-mail DefaultTimeout) waiting on a firewalled port.
  2. The fallback dial to host:25 fires with an already-expired context,
     producing a misleading "lookup <host>: i/o timeout" DNS error rather
     than the actual root cause (port 587 unreachable).

The previous mail library (gopkg.in/mail.v2) used the port value directly
without any policy-based override, so this regression surfaced only after
migrating to github.com/wneessen/go-mail.

WithTLSPolicy applies the same STARTTLS negotiation semantics (NoTLS or
TLSOpportunistic) without mutating the port, which is the correct choice
when the caller has already provided an explicit port via WithPort.
v4.0.1-debug
2026-02-17 19:30:07 +05:30
OP (oppenheimer) b4bc696ee8 Merge pull request #5 from harness-community/doc_add
feat:[]: adding documentation for sample test pipeline
2025-10-16 11:35:25 +05:30
Ebtasam Faridy 62bbef39fa feat:[]: adding documentation for sample test pipeline 2025-10-16 10:39:51 +05:30
ebtasam-faridy 75db7ad3f8 Merge pull request #4 from harness-community/CI-18739
feat: [CI-18739]: migrate to Go 1.24 with modern dependencies and Go modules
v4.0.0
2025-10-15 12:38:00 +05:30
Ompragash Viswanathan f5c31387a1 Fix the Default Email Template to use helper v3.1.0-debug 2025-10-15 11:11:07 +05:30
Ompragash Viswanathan 99df93e082 fix int to float v3.0.4-debug 2025-10-14 17:49:17 +05:30
OP (oppenheimer) 77bf8220a3 Update Dockerfile.linux.arm64 2025-10-14 17:29:12 +05:30
Ebtasam Faridy 1865866bee feat:[CI-18739]: fixing float error casued by template update v3.0.3-debug 2025-10-14 16:13:52 +05:30
Maanav Shah b80cb1208b Add vendor in gitignore v3.0.1-debug v3.0.2-debug 2025-10-14 14:54:16 +05:30
Maanav Shah 40250d022a Upgrade go version and remove toolchain 2025-10-14 14:52:40 +05:30
Ompragash Viswanathan 514809ac1a feat: migrate to Go 1.24 with modern dependencies and Go modules 2025-10-14 01:18:59 +05:30
OP (oppenheimer) 99e763c1d8 Update README.md 2024-12-05 11:53:14 +05:30
Ompragash Viswanathan 6cdc129e0b Update base image version to fix sec vuln and renamed Dockerfiles for clarity v3.0.0 v3.0.0-debug 2024-11-13 16:52:46 +05:30
architmallik7 00423fe0b9 fix 2024-05-03 19:15:41 +05:30
architmallik7 e56738efed Added Map for storing email 2024-05-03 17:43:16 +05:30
architmallik7 f2a9f41fff update go version 2024-04-02 20:26:25 +05:30
architmallik7 f3a970f6ac Merge branch 'test' of https://github.com/harness-community/drone-email into test 2024-04-02 20:12:34 +05:30
architmallik7 b4c2e8afc0 add manifest template 2024-04-02 20:12:13 +05:30
OP (oppenheimer) 8a78136b01 Update build.sh 2024-04-02 19:50:58 +05:30
architmallik7 c5c6593e14 Added windows support 2024-04-02 19:42:56 +05:30
Michael de Wit 24daaff1de Merge pull request #68 from zc2638/feat/tz
support time zone
2022-07-14 11:22:52 +02:00
zc 5d25b7a270 support time zone 2022-07-14 15:36:44 +08:00
Michael de Wit 115f5adeaa Merge pull request #62 from synaestic/author_fix
map commit.author.name to DRONE_COMMIT_AUTHOR_NAME
2022-05-30 15:48:45 +02:00
synaestic 3f47a32767 Add DRONE_COMMIT_AUTHOR_NAME to commit.author.name mapping targets 2022-05-30 13:40:40 +02:00
Michael de Wit e265499665 Fix #61 by correctly referencing PLUGIN_FROM.ADDRESS and PLUGIN_FROM.NAME 2022-04-26 18:09:02 +02:00
Michael de Wit 7340d3d417 Flip starttls flag to fix #58 2021-11-01 18:56:45 +01:00
Michael de Wit c75190e21a Merge pull request #57 from glaszig/starttls
allow disabling starttls
2021-10-31 14:36:27 +01:00
glaszig 16b20ece7a allow disabling starttls
- use more up-to-date gomail fork
- add starttls option
2021-10-29 18:10:24 -03:00
Michael de Wit 5e36812d7f Merge pull request #56 from tiggerlee2/master
Extended from configuration to support utf8 name
2021-10-21 07:12:24 +02:00
lishuangtai 027b1d4ab6 Extended from configuration to support utf8 name 2021-10-21 09:57:04 +08:00
Michael de Wit 13e990499d Merge pull request #55 from dballard/master
upgrade from alpine linux 3.11 to 3.14 for newer SSL root certs (old …
2021-10-01 14:50:23 +02:00
Dan Ballard 258783d694 upgrade from alpine linux 3.11 to 3.14 for newer SSL root certs (old certs were now expired for some lets encrypt certs) 2021-09-30 13:51:18 -07:00
Michael de Wit 0d6a70a9a8 Merge pull request #53 from igal-SX/patch-2
add docker create for ARM
2021-09-15 16:21:36 +02:00
Michael de Wit 0d50aa9f2b Merge pull request #52 from igal-SX/patch-1
Update Arm Dockerfile
2021-09-15 16:20:36 +02:00
igal-SX c232253af7 add docker create for ARM
adding all relevant docker buildx commands for arm.
2021-09-14 22:03:03 +03:00
igal-SX eb4d8f1c75 Update Arm Dockerfile
After several tries, the arm dockerfile is not working at all, and there is an error of the binary.
only change to golang 1.15 solve it
2021-09-14 21:58:41 +03:00
Michael de Wit 1d2b6deb8d Add step settings under settings key in docs 2021-02-08 12:34:16 +01:00
Michael de Wit 5a6dd0b174 Focus docs on Drone v1 (#46) 2021-02-08 10:45:02 +01:00
Michael de Wit 537551cd38 Merge pull request #44 from BigeYoung/patch-1
solved #43
2020-12-07 09:17:22 +01:00
BigeYoung e7c7a6ff3e solved #43
When using external url, the character `>` is redundant.
2020-12-07 16:03:05 +08:00
Michael de Wit 5257b5ab04 Merge pull request #39 from xemle/feature/docker-arm
Update Dockerfile for arm architecture
2020-12-03 09:45:53 +01:00
Michael de Wit e861696b04 Merge pull request #42 from s00500/master
Add options to load recipients from file (#41)
2020-12-01 15:02:17 +01:00
Lukas Bachschwell c139365a67 Add options to load recipients from file
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
2020-12-01 13:51:43 +01:00
Michael de Wit 28bc16668a Merge pull request #40 from immerrr/add-workaround-for-kubernetes-runner
Use /run/drone/env as default PLUGIN_ENV_FILE, overwrite env vars with it
2020-08-02 12:28:25 +02:00
immerrr e60e502514 Use /run/drone/env as default PLUGIN_ENV_FILE, overwrite env vars with it
It is required for the plugin to work correctly with Kubernetes runner, where
environment variables are created before the pipeline is finished and thus
initial DRONE_BUILD_STATUS is always "success".

Related discourse topic:

https://discourse.drone.io/t/drone-build-status-always-success-in-kubernetes/6627/2

Similar workaround in drone-slack:

https://github.com/drone-plugins/drone-slack/blob/59d3676b1cb7dbbdd9ca4b677570cd510ed8929a/main.go#L187-L189
2020-07-31 19:57:28 +02:00
Sebastian Felis b5d272586f Update Dockerfile for arm architecture 2020-05-07 21:45:11 +02:00
Michael de Wit 8b63a0b1e1 Merge pull request #37 from loganmarchione/master
Update Go and Alpine
2020-04-30 08:25:10 +02:00