- This is GitHub custom action.
- Dynamically send an email with attachments.
- name: Send email
uses: devellany/send-mailer@v1.0.2
with:
host: smtp.google.com
# Optional port (defaults to 465)
port: 465
account: ${{secrets.ACCOUNT}}
password: ${{secrets.MAIL_PASSWORD}}
sender: devellany
from: ${{secrets.MAIL_ADDRESS}}
to: devellay@dico.me
subject: mail title.
body: your messages.
# Optional content type (defaults to text/plain)
contentType: text/plain
# Optional attachment files (JSON type. require property 'path')
attachments: '[{"path":"README.md"}]'
Some properties can read files. The prefix 'file://' if you want to read a file.
- to
- subject
- body
- contetnType
- attachments
- name: Send email
uses: devellany/send-mailer@v1.0.2
with:
host: smtp.google.com
account: ${{secrets.ACCOUNT}}
password: ${{secrets.MAIL_PASSWORD}}
sender: devellany
from: ${{secrets.MAIL_ADDRESS}}
to: devellay@dico.me
subject: mail title.
body: file://README.md
contentType: text/html
attachments: file://attachmets.json