From a855de38fe40b4fb15e5e99b87967ad03d76543b Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 14 Jun 2025 23:10:25 +0200 Subject: [PATCH] support proxy configuration --- .prettierrc | 4 ---- README.md | 8 +++++--- main.js | 1 + 3 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 5a938ce1..00000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "tabWidth": 4, - "useTabs": false -} diff --git a/README.md b/README.md index ae333a39..5b7405a2 100644 --- a/README.md +++ b/README.md @@ -3,18 +3,21 @@ An action that simply sends a mail to multiple recipients. Some features: + - plain text body - HTML body - multipart body (plain text + HTML) - Markdown to HTML converting (use `html_body`, not `body`) - file attachments (supports globbing) - ## Usage ```yaml - name: Send mail uses: dawidd6/action-send-mail@v5 + env: + # Optional http proxy: + HTTP_PROXY: http://proxy.example.test:3128 with: # Specify connection via URL (replaces server_address, server_port, secure, # username and password) @@ -76,8 +79,7 @@ Some features: Instead of using your normal Google password, use an App password. -1. [Enable 2-Step Verification.](https://support.google.com/accounts/answer/185839?hl=en&co=GENIE.Platform%3DAndroid). -This is needed to create an App password. +1. [Enable 2-Step Verification](https://support.google.com/accounts/answer/185839?hl=en&co=GENIE.Platform%3DAndroid). This is needed to create an App password. 2. [Create an App password](https://support.google.com/accounts/answer/185833?hl=en) for `Mail`. ### Unauthenticated login (username/password fields) diff --git a/main.js b/main.js index a045cd60..59b3e680 100644 --- a/main.js +++ b/main.js @@ -146,6 +146,7 @@ async function main() { : undefined, logger: nodemailerdebug == "true" ? true : nodemailerlog, debug: nodemailerdebug, + proxy: process.env.HTTP_PROXY, }); var i = 1;