Skip to content

hubertklonowski/send-mail

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

send-mailer

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

Sample .yml

- name: Send email
  uses: devellany/[email protected]
  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: [email protected]
      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/[email protected]
 with:
   host: smtp.google.com
     account: ${{secrets.ACCOUNT}}
     password: ${{secrets.MAIL_PASSWORD}}
     sender: devellany
     from: ${{secrets.MAIL_ADDRESS}}
     to: [email protected]
     subject: mail title.
     body: file://README.md
     contentType: text/html
     attachments: file://attachmets.json

Sample Repository

send-mail-sample

About

Send mail for GitHub Actions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%