sending email #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send Email Example | |
on: | |
push: | |
branches: | |
- main # Trigger on push to the main branch | |
jobs: | |
send_email: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository (optional, depending on your workflow) | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Step 2: Send an email | |
- name: Send Email | |
uses: dawidd6/action-send-mail@v3 | |
with: | |
server_address: smtp.gmail.com # SMTP server | |
server_port: 465 # SMTP port (SSL) | |
username: dhnt6847@gmail.com | |
password: taimrdahan | |
subject: "GitHub Actions Email" | |
body: "This is a test email sent by GitHub Actions." | |
to: "tamir.dahan@ness-tech.co.il" # Recipient email | |
from: "tamir.dahan@ness-tech.co.il" # Sender email |