ssmtp with amd64 and arm64 cmd: ca-certificates ssmtp curl bash nano ca-certificates busybox-extras
2.9K
docker run -i --rm -e TLS=YES -e mailhub=smtp.gmail.com:587 -e AuthUser=[email protected] -e AuthPass=xxx philoles/mail sh -c 'df -h > /tmp/mail_report.log && free -m >> /tmp/mail_report.log && mail -s "$HOSTNAME disk and RAM report" [email protected] < /tmp/mail_report.log'
or docker run -itd cnrock/ssmtp bash enter the docker , change /etc/ssmtp/ssmtp.conf and /etc/ssmtp/revaliases then "echo -e 'Subject:Test messaget\n\nTest message from Linux server using ssmtp'|ssmtp -vvv [email protected]"
Content type
Image
Digest
sha256:081cba6a6…
Size
9.6 MB
Last updated
11 months ago
docker pull cnrock/ssmtp