Skip to content

Commit 99cb119

Browse files
committed
Test SES email
1 parent 49151fe commit 99cb119

File tree

1 file changed

+25
-42
lines changed

1 file changed

+25
-42
lines changed

.github/workflows/TestWorkflow.yml

Lines changed: 25 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,57 +20,40 @@ 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-
from: asteriskteamsa@sangoma.com
27+
server_address: email-smtp.us-east-1.amazonaws.com
28+
server_port: 465
29+
secure: true
30+
username: ${{ secrets.ASTERISKTEAM_SES_KEY_ID }}
31+
password: ${{ secrets.ASTERISKTEAM_SES_KEY_SECRET }}
32+
subject: Test via SES
3533
to: gjoseph@sangoma.com
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: '[]'
34+
from: asteriskteam@sangoma.com
35+
body: "test email"
36+
reply_to: no-reply@sangoma.com
37+
ignore_cert: true
38+
convert_markdown: false
39+
nodemailerlog: true
40+
nodemailerdebug: true
4241

4342
- name: Send Release Announcements
4443
if: always()
45-
uses: dawidd6/action-send-mail@v4
44+
uses: dawidd6/action-send-mail@v6
4645
with:
47-
server_address: smtp.office365.com
48-
server_port: 587
49-
secure: false
50-
username: ${{ secrets.ASTERISKTEAMSA_USERNAME }}
51-
password: ${{ secrets.ASTERISKTEAMSA_PASSWORD }}
52-
subject: Test via MS2
46+
server_address: smtp.gmail.com
47+
server_port: 465
48+
secure: true
49+
username: ${{secrets.ASTERISKTEAMSA_GMAIL_ACCT}}
50+
password: ${{secrets.ASTERISKTEAMSA_GMAIL_TOKEN}}
51+
subject: Test via GMAIL
5352
to: gjoseph@sangoma.com
54-
from: asteriskteamsa@sangoma.com
53+
from: asteriskteam@sangoma.com
5554
body: "test email"
5655
reply_to: no-reply@sangoma.com
5756
ignore_cert: true
5857
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: asteriskteamsa@sangoma.com
68-
to-email: gjoseph@sangoma.com
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-
58+
nodemailerlog: true
59+
nodemailerdebug: true

0 commit comments

Comments
 (0)