Sending Email via github action using gmail service.
- uses: insgreeb-pro/mail-action@v1
name: Email Notification
with:
email: ${{ secrets.EMAIL_USER }}
password: ${{ secrets.EMAIL_PASSWORD }}
to: ${{ secrets.TO }}
subject: Email Notification ${{ github.repository }}
html: |
<p>Actor: ${{ github.actor }}</p>
<p>Message: ${{ github.event.head_commit.message }}</p>
email - (required) gmail email account
password - (required) password to login gmail
to - (required) email destination, using comma separation if multiple destination ex: example@example.com
or user1@example.com, user2@domain.com
subject (required) email subject
text (optional) email body text
html (optional) email body using html
Note:
Don't forget to activate less secure app on gmail settings.