wkhtmltopdf, html to pdf, sending email, sending a file by email, email report
403
te-send-email is a lightweight program for sending files via email. It is also an html to pdf converter. It can send any file by attaching it as a binary attachment. In the container, the script searches for files with the given extension in the variable format. For the container to work, you need to mount the config and shared folders. The config folder should contain an email.conf file with settings for sending emails. In the shared/reports folder, there should be a file to send with the desired extension. Only one file will be attached to the letter.
docker pull biwis/te-send-email
docker run --rm --name te-send-email -v "$PWD/shared:/shared:Z" -v "$PWD/config:/config:Z" -e format="html" biwis/te-send-email
docker run --rm --name te-send-email -v "$PWD/shared:/shared:Z" -v "$PWD/config:/config:Z" -e format="pdf" -e convert="yes" biwis/te-send-email
docker run --rm --name te-send-email -v "$PWD/shared:/shared:Z" -v "$PWD/config:/config:Z" -e format="pdf" biwis/te-send-email
docker run --rm --name te-send-email -v "$PWD/shared:/shared:Z" -v "$PWD/config:/config:Z" -e format="pdf" -e convert="yes" -e email="no" biwis/te-send-email
docker run -d --name te-send-email -v "etc/timezone:/etc/timezone:ro" -v "/etc/localtime:/etc/localtime:ro" -v "$PWD/shared:/shared:Z" -v "$PWD/config:/config:Z" -e format="pdf" -e convert="yes" -e cron_time="0 5 * * 1" biwis/te-send-email
version: "3.9"
services:
te-send-email:
image: "biwis/te-send-email:latest"
volumes:
- "./config:/config:Z"
- "./shared:/shared:Z"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
environment:
cron_time: "00 5 20 * *"
convert: "yes"
format: "pdf"
restart: on-failure
These values are in run.sh and sheduler.py of this image
format="pdf" # attached file extension
convert="no" # converting html to pdf file
email="yes" # sending an email message
cron_time="" # crond scheduling an email message to be sent
command="/run.sh" #run command in this container
arg="" #argument for the command in this container
[SMTP]
server=>email server addres>
port=<port>
email_from=<name>
email_to=<name>
password=<password>
subject="Test subject"
message="Test message."
valid variable "port" values for security connection:
Content type
Image
Digest
sha256:ba417a9e0…
Size
143.7 MB
Last updated
about 3 years ago
docker pull biwis/te-send-email:bullseye