Skip to content

Instantly share code, notes, and snippets.

@jonatasrenan
Created January 12, 2018 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonatasrenan/adc033c56ffd579b90348915e511424e to your computer and use it in GitHub Desktop.
Save jonatasrenan/adc033c56ffd579b90348915e511424e to your computer and use it in GitHub Desktop.
Send mailx from docker
docker run -i --rm corentinaltepe/heirloom-mailx sh -c 'echo "Backup executado com sucesso" | mailx -s "Backup `date +%Y-%m-%d`" -S smtp=smtp://smtp.grude.ufmg.br -S smtp-auth=login -S smtp-auth-user=login -S smtp-auth-password=pass -S from="Sender <sender@ufmg.br>" recipient@ufmg.br'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment