mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-01 19:27:38 +07:00
Add connection_url input parameter (#131)
Specify connection via URL (replaces server_address, server_port, secure, username and password) Format: * smtp://user:password@server:port * smtp+starttls://user:password@server:port Closes: #127 Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
This commit is contained in:
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -58,3 +58,19 @@ jobs:
|
||||
attachments: ${{matrix.attachments}}
|
||||
convert_markdown: ${{matrix.convert_markdown}}
|
||||
priority: high
|
||||
|
||||
url-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Send mail
|
||||
uses: ./
|
||||
with:
|
||||
connection_url: smtp+starttls://${{secrets.USERNAME}}:${{secrets.PASSWORD}}@${{secrets.ADDRESS}}/
|
||||
subject: Plain body with connection_url
|
||||
body: |
|
||||
first line
|
||||
second line
|
||||
to: ${{github.event.pusher.email}}
|
||||
from: github-actions
|
||||
|
Reference in New Issue
Block a user