Thomas' Tech Tips

Send email reminders from the shell

15 March 2023 - Thomas Damgaard

A properly configured Linux system should be able to send emails from the shell using the mail command.

Using mail and at provides a handy way of sending reminders to yourself.


echo "mail -s 'Remember to buy eggs on your way home' < /dev/null" | at 16:30

At 16:300, this will send an email to with the subject Remember to buy eggs on your way home and an empty body.

Filed under: at, howto, linux, mail, tips

Back to article list