Skip to content

Send mailer

Actions
Dynamically send an email with attachments
v1.0.2
Latest
Star (15)

send-mailer

  • This is GitHub custom action.
  • Dynamically send an email with attachments.

Sample .yml

- 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"}]'

How to Secrets.KEY

how to secrets.KEY

What is 'Dynamically' send an email?

Some properties can read files. The prefix 'file://' if you want to read a file.

Applicable properties

  • 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

Sample Repository

send-mail-sample

Send mailer is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Dynamically send an email with attachments
v1.0.2
Latest

Send mailer is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.