mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-07-01 20:53:14 +07:00
support proxy configuration
This commit is contained in:
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"tabWidth": 4,
|
|
||||||
"useTabs": false
|
|
||||||
}
|
|
@ -3,18 +3,21 @@
|
|||||||
An action that simply sends a mail to multiple recipients.
|
An action that simply sends a mail to multiple recipients.
|
||||||
|
|
||||||
Some features:
|
Some features:
|
||||||
|
|
||||||
- plain text body
|
- plain text body
|
||||||
- HTML body
|
- HTML body
|
||||||
- multipart body (plain text + HTML)
|
- multipart body (plain text + HTML)
|
||||||
- Markdown to HTML converting (use `html_body`, not `body`)
|
- Markdown to HTML converting (use `html_body`, not `body`)
|
||||||
- file attachments (supports globbing)
|
- file attachments (supports globbing)
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Send mail
|
- name: Send mail
|
||||||
uses: dawidd6/action-send-mail@v5
|
uses: dawidd6/action-send-mail@v5
|
||||||
|
env:
|
||||||
|
# Optional http proxy:
|
||||||
|
HTTP_PROXY: http://proxy.example.test:3128
|
||||||
with:
|
with:
|
||||||
# Specify connection via URL (replaces server_address, server_port, secure,
|
# Specify connection via URL (replaces server_address, server_port, secure,
|
||||||
# username and password)
|
# username and password)
|
||||||
@ -76,8 +79,7 @@ Some features:
|
|||||||
|
|
||||||
Instead of using your normal Google password, use an App password.
|
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).
|
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.
|
||||||
This is needed to create an App password.
|
|
||||||
2. [Create an App password](https://support.google.com/accounts/answer/185833?hl=en) for `Mail`.
|
2. [Create an App password](https://support.google.com/accounts/answer/185833?hl=en) for `Mail`.
|
||||||
|
|
||||||
### Unauthenticated login (username/password fields)
|
### Unauthenticated login (username/password fields)
|
||||||
|
1
main.js
1
main.js
@ -146,6 +146,7 @@ async function main() {
|
|||||||
: undefined,
|
: undefined,
|
||||||
logger: nodemailerdebug == "true" ? true : nodemailerlog,
|
logger: nodemailerdebug == "true" ? true : nodemailerlog,
|
||||||
debug: nodemailerdebug,
|
debug: nodemailerdebug,
|
||||||
|
proxy: process.env.HTTP_PROXY,
|
||||||
});
|
});
|
||||||
|
|
||||||
var i = 1;
|
var i = 1;
|
||||||
|
Reference in New Issue
Block a user