mail doesn't work
7,369
You can send mail to your gmail account using:
$ mail -s "Subject" [email protected]
Body Text
^D
Cc:^D
If it doesn't work, then check if mail is installed.
$ which mail
If this command doesn't give anything, then mail
isn't installed. To install:
$ sudo apt-get install mailutils
OR
# yum install mailutils
etc ...
From: http://www.simplehelp.net/2008/12/01/how-to-send-email-from-the-linux-command-line/
Related videos on Youtube
Author by
David Martínez
I am a Spanish student of Computer Sciences and an enthusiast of FOSS . My fields of interest are the Operating Systems and the embedded systems.
Updated on September 18, 2022Comments
-
David Martínez almost 2 years
I'm new to GNU/Linux and I want to send e-mail to other users on my computer (specifically from
root
todavid
). I've searched on google and I have tried the following:# mail david Subject: some subject. The message ... ^D Cc:
But when I login on the system as
david
and typemail
it saysno mail for david
.Does
mail
work too for sending an email to a G-mail account? -
David Martínez almost 11 yearsThanks for the info @Kartik, but it was not enough. Finally I had to reconfigure the MTA with
dpkg-reconfigure exim4-config
and now it works perfectly.