• Stars
    star
    417
  • Rank 103,829 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

โš™๏ธ A GitHub Action to send an email to multiple recipients

Send mail Github Action

An action that simply sends a mail to multiple recipients.

Some features:

  • plain text body
  • HTML body
  • multipart body (plain text + HTML)
  • Markdown to HTML converting (use html_body, not body)
  • file attachments (supports globbing)

Usage

- name: Send mail
  uses: dawidd6/action-send-mail@v3
  with:
    # Specify connection via URL (replaces server_address, server_port, secure,
    # username and password)
    #
    # Format:
    #
    #  * smtp://user:password@server:port
    #  * smtp+starttls://user:password@server:port
    connection_url: ${{secrets.MAIL_CONNECTION}}
    # Required mail server address if not connection_url:
    server_address: smtp.gmail.com
    # Server port, default 25:
    server_port: 465
    # Optional whether this connection use TLS (default is true if server_port is 465)
    secure: true
    # Optional (recommended) mail server username:
    username: ${{secrets.MAIL_USERNAME}}
    # Optional (recommended) mail server password:
    password: ${{secrets.MAIL_PASSWORD}}
    # Required mail subject:
    subject: Github Actions job result
    # Required recipients' addresses:
    to: [email protected],[email protected]
    # Required sender full name (address can be skipped):
    from: Luke Skywalker # <[email protected]>
    # Optional plain body:
    body: Build job of ${{github.repository}} completed successfully!
    # Optional HTML body read from file:
    html_body: file://README.html
    # Optional carbon copy recipients:
    cc: [email protected],[email protected]
    # Optional blind carbon copy recipients:
    bcc: [email protected],[email protected]
    # Optional recipient of the email response:
    reply_to: [email protected]
    # Optional Message ID this message is replying to:
    in_reply_to: <[email protected]>
    # Optional unsigned/invalid certificates allowance:
    ignore_cert: true
    # Optional converting Markdown to HTML (set content_type to text/html too):
    convert_markdown: true
    # Optional attachments:
    attachments: attachments.zip,git.diff,./dist/static/*.js
    # Optional priority: 'high', 'normal' (default) or 'low'
    priority: low

Troubleshooting

Gmail

Instead of using your normal Google password, use an App password.

  1. Enable 2-Step Verification.. This is needed to create an App password.
  2. Create an App password for Mail.

Unauthenticated login (username/password fields)

The parameters username and password are set as optional to support self-hosted runners access to on-premise infrastructure. If you are accessing public email servers make sure you provide a username/password authentication through GitHub Secrets to make the email delivery secure.

More Repositories

1

action-download-artifact

โš™๏ธ A GitHub Action to download an artifact associated with given workflow and commit or other criteria
JavaScript
668
star
2

action-ansible-playbook

โš™๏ธ A GitHub Action for running Ansible playbooks
JavaScript
262
star
3

action-homebrew-bump-formula

โš™๏ธ A GitHub Action to easily bump Homebrew formula on new release
Ruby
88
star
4

action-get-tag

โš™๏ธ A GitHub Action to get the pushed tag name
JavaScript
39
star
5

action-debian-package

โš™๏ธ A GitHub Action for building Debian packages
JavaScript
23
star
6

deber

๐Ÿ“ฆ๐Ÿ‹ Debian packaging with Docker
Go
23
star
7

Brewery

๐Ÿบ Cross-platform frontend to Homebrew formulae API
Dart
21
star
8

go-appindicator

๐Ÿšฅ Go bindings for libappindicator3 C library
Go
19
star
9

AndTTT

๐ŸŽฒ Simple tic tac toe game for Android
Java
18
star
10

homebrew-tap

๐Ÿบ Homebrew tap for my (and not) software
Ruby
14
star
11

seedbox

rTorrent + ruTorrent + Webserver + XMLRPC-C (un)installation script
Shell
12
star
12

action-publish-gem

โš™๏ธ A GitHub Action to build and publish a Ruby gem
Ruby
11
star
13

debian-vscode

๐Ÿฌ Debian packaging files syntax highlighting support for VSCode
10
star
14

checksumo

๐Ÿ“ A simple application for verifying specified file against given hash, written in Go with GTK+3 graphical interface
Go
9
star
15

action-delete-branch

โš™๏ธ A GitHub Action to delete multiple branches
JavaScript
8
star
16

nix

โ„๏ธ My NixOS and home-manager configurations
Nix
5
star
17

homebrew-autoremove

๐Ÿบโ›” Homebrew autoremove external command
Ruby
5
star
18

action-checkout-pr

โš™๏ธ A GitHub Action to checkout a pull request with ability to push back
JavaScript
5
star
19

action-docker-publish-changed

โš™๏ธ A GitHub Action to build and publish multi platform Docker images based on changed paths
JavaScript
4
star
20

go-spotify-dbus

๐ŸŽถ Simple library that helps interacting with Spotify dbus interface
Go
4
star
21

homebrew-update-pypi-resources

๐Ÿบ๐Ÿ Homebrew external command to update python pypi resources in formulae
Ruby
3
star
22

action-git-user-config

โš™๏ธ A GitHub Action to configure git for given user
JavaScript
3
star
23

indicator-net

๐Ÿ“Š Ubuntu (unity) panel indicator
C
3
star
24

actions-updater

๐Ÿ› ๏ธ Updater of used GitHub Actions in workflow files
Ruby
3
star
25

ba-bump

๐Ÿบ Automatic Homebrew formulae bumping
2
star
26

dawidd6

๐Ÿ‘ค About me
2
star
27

minifetch

Minimal system info fetcher
Shell
2
star
28

qtictactoe

๐ŸŽฒ Simple tictactoe game
C++
2
star
29

docker

๐Ÿ‹ Some useful Dockerfiles and Compose files
Dockerfile
1
star
30

indicator-mpd

๐Ÿ“Š Ubuntu (unity) panel indicator
C
1
star
31

go-mmap

๐Ÿ“ฆ Concurrent-safe map[interface{}]interface{}
Go
1
star
32

dotfiles

๐Ÿ’ป Config files
Shell
1
star
33

ansible

๐Ÿ”ง Ansible playbooks
Shell
1
star
34

indicator-spotify

๐Ÿ“Š Ubuntu (unity) panel indicator
C
1
star
35

action-git-try-push

โš™๏ธ A GitHub Action to push changes with tries count
JavaScript
1
star
36

p2p

๐Ÿ“‚ A P2P file sharing system, based on gRPC
Go
1
star