Sign inSign up

camilo8aa/mail-sender

By camilo8aa

•Updated over 1 year ago

Mailbox using any SMTP email

Image
Integration & delivery
0

500

camilo8aa/mail-sender repository overview

Examples to use it:

⁠Example with console

docker run --rm \
  -v /opt/data/folder_files:/tmp/folder_files \
  -e SMTP_HOST=smtp.gmail.com \
  -e SMTP_PORT=587 \
  -e [email protected] \
  -e [email protected] \
  -e SMTP_PASS=your_app_password \
  mail-sender \
  [email protected] \
  "Your OpenVPN Config" \
  "Hi User, your file is attached." \
  /tmp/user_file_path

⁠Example with Ansible

- name: Send .ovpn using mail container with SMTP secrets
  shell: >
    docker run --rm
    -v {{ openvpn_data_dir }}/{{ item.name }}.ovpn:/tmp/{{ item.name }}.ovpn
    -e SMTP_HOST={{ smtp_host }}
    -e SMTP_PORT={{ smtp_port }}
    -e SMTP_FROM={{ smtp_from }}
    -e SMTP_USER={{ smtp_user }}
    -e SMTP_PASS={{ smtp_pass }}
    mail-sender
    {{ item.email }}
    "Your OpenVPN Config"
    "Hi {{ item.name }}, your config is attached."
    /tmp/{{ item.name }}.ovpn
  loop: "{{ vpn_email_recipients }}"

Tag summary

Content type

Image

Digest

sha256:e8cb9a4b5…

Size

60.5 MB

Last updated

over 1 year ago

docker pull camilo8aa/mail-sender:1.0.17