Skip to content

Commit 791e550

Browse files
committed
Test SES email
1 parent 49151fe commit 791e550

File tree

1 file changed

+24
-39
lines changed

1 file changed

+24
-39
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 24 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -20,57 +20,42 @@ jobs:
2020
run:
2121
shell: bash
2222
steps:
23-
- name: Send email via MS
23+
- name: Send Release Announcements
2424
if: always()
25-
uses: devellany/send-mail@v1.0.2
25+
uses: dawidd6/action-send-mail@v6
2626
with:
27-
host: smtp-mail.outlook.com
28-
# Optional port (defaults to 465)
29-
port: 587
30-
account: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
31-
password: ${{ secrets.ASTERISKTEAMSA_PASSWORD }}
32-
secure: false
33-
sender: Asterisk Development Team
34-
27+
server_address: ${{ vars.ASTERISKTEAM_SES_SMTP_HOST }}
28+
server_port: 465
29+
#${{ vars.ASTERISKTEAM_SES_SMTP_PORT }}
30+
secure: true
31+
username: ${{ secrets.ASTERISKTEAM_SES_KEY_ID }}
32+
password: ${{ secrets.ASTERISKTEAM_SES_KEY_SECRET }}
33+
subject: Test via SES
3534
36-
subject: mail title.
37-
body: your messages.
38-
# Optional content type (defaults to text/plain)
39-
contentType: text/plain
40-
# Optional attachment files (JSON type. require property 'path')
41-
attachments: '[]'
35+
from: Asterisk Development Team <[email protected]>
36+
envelope_from: [email protected]
37+
# nodemailerlog: true
38+
# nodemailerdebug: true
39+
# envelope_from: [email protected]
40+
# envelope_to: [email protected]
41+
body: "test email"
42+
43+
ignore_cert: true
44+
convert_markdown: false
4245

4346
- name: Send Release Announcements
44-
if: always()
47+
if: false
4548
uses: dawidd6/action-send-mail@v4
4649
with:
47-
server_address: smtp.office365.com
50+
server_address: smtp.gmail.com
4851
server_port: 587
4952
secure: false
50-
username: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
51-
password: ${{ secrets.ASTERISKTEAMSA_PASSWORD }}
52-
subject: Test via MS2
53+
username: ${{secrets.ASTERISKTEAMSA_GMAIL_ACCT}}
54+
password: ${{secrets.ASTERISKTEAMSA_GMAIL_TOKEN}}
55+
subject: Test via GMAIL
5356
5457
5558
body: "test email"
5659
5760
ignore_cert: true
5861
convert_markdown: false
59-
60-
- name: Send Email
61-
if: always()
62-
uses: hilarion5/send-mail@v1
63-
with:
64-
smtp-server: smtp-mail.outlook.com
65-
smtp-port: 587
66-
smtp-secure: false
67-
from-email: [email protected]
68-
69-
username: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
70-
password: ${{ secrets.ASTERISKTEAMSA_PASSWORD }}
71-
subject: Test Email
72-
body: This is a test email sent from GitHub Actions.
73-
html: |
74-
<h1>This is a test email</h1>
75-
<p>Test Paragraph</p>
76-

0 commit comments

Comments
 (0)