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: [email protected]
or [email protected], [email protected]
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.