support proxy configuration

This commit is contained in:
Dawid Dziurla
2025-06-14 23:10:25 +02:00
parent cb3a0635bb
commit a855de38fe
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +0,0 @@
{
"tabWidth": 4,
"useTabs": false
}

View File

@ -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)

View File

@ -146,6 +146,7 @@ async function main() {
: undefined,
logger: nodemailerdebug == "true" ? true : nodemailerlog,
debug: nodemailerdebug,
proxy: process.env.HTTP_PROXY,
});
var i = 1;