Skip to content

sending email

sending email #1

Workflow file for this run

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