using /usr/bin/mail on Ubuntu 18.04

Peter Flynn peter at silmaril.ie
Thu Jun 17 21:13:14 UTC 2021


On 17/06/2021 13:40, Jerry Geis wrote:
> HiĀ 
> 
> I am trying to do something like:
> echo "" | mail myemail at myemail.com 
> 
> This just hangs... Weird right.

What is in /etc/mail? You need to have a mail transfer agent (MTA)
installed to send mail. See what happens if you try

sudo apt install sendmail

(warning: you then need to configure it to send via your email provider)

Peter




More information about the ubuntu-users mailing list