Quantcast
Channel: How to send mail from the command line? - Ask Ubuntu
Browsing all 18 articles
Browse latest View live

Answer by Aquarius_Girl for How to send mail from the command line?

Run: sudo apt-get install ssmtp sudo -H gedit /etc/ssmtp/ssmtp.conf The following needs to be added there: # The user that gets all the mails (UID < 1000, usually the admin)...

View Article



Answer by Scott Stensland for How to send mail from the command line?

In addition to above I was still getting this error echo "Test message from Linux server using ssmtp" | sudo ssmtp -vvv somebody@mil.gov [<-] 220 smtp.gmail.com ESMTP v193sm19198825qka.18 - gsmtp...

View Article

Answer by user142345 for How to send mail from the command line?

mail -s "subjet" -a "attchedfile_name" someone@dest_email.com or cat "afile" | mail -s "subject" someone@dest_email.com

View Article

Answer by hanoo for How to send mail from the command line?

You can send an email from the command line with TelNet or NetCat. Everything is explained here. hanoo@hp_laptop% nc 127.0.0.1 25 220 hp_laptop.localdomain ESMTP Postfix EHLO man 250...

View Article

Answer by One Zero for How to send mail from the command line?

You need an MTA to send mail. For this, use postfix: sudo apt-get install postfix To send email: echo "test message" | mailx -s 'test subject' myemail@mydomain.com HELP

View Article


Answer by MhdSyrwan for How to send mail from the command line?

Install the package sendmail then type sendmail -t receiver@example then write your email then press Ctrl+D

View Article

Answer by Sharad for How to send mail from the command line?

You can try this: mail name@mailserver.com -s "Attached file" <<EOF Hi ~| uuencode $HOME/filename.txt filename.txt EOF It works with GNU Mailutils, check the website for more information.

View Article

Answer by nisse for How to send mail from the command line?

sudo apt-get install sharutils mailutils uuencode filename filename | mail user@example.com where filename is the same: it stands for input file and remote file.

View Article


Answer by jet for How to send mail from the command line?

apt-get install libio-socket-ssl-perl libnet-ssleay-perl sendemail usage: sendemail -f fromuser@gmail.com -t touser@domain.com -u subject -m "message" -s smtp.gmail.com:587 -o tls=yes -xu...

View Article


Answer by Marco Ceppi for How to send mail from the command line?

Most of the time you shouldn't need to configure an SMTP server you can simply use mail from the commandline (if it's not already present, install with sudo apt-get install mailutils). (Or if you're on...

View Article

Answer by BozoJoe for How to send mail from the command line?

mpack is excellent commandline way of sending file attachments. apt-get install mpack usage: mpack -s "file you wanted" ./data.pdf loser@supergoober.cn

View Article

Image may be NSFW.
Clik here to view.

Answer by Sid for How to send mail from the command line?

Install ssmtp : sudo apt-get install ssmtp Edit the ssmtp config file: gksu gedit /etc/ssmtp/ssmtp.conf Append the following text: root=username@gmail.com mailhub=smtp.gmail.com:465...

View Article

Answer by ddeimeke for How to send mail from the command line?

If you try to send e-mail from a system, whitch does not run an own e-mail-server (i. e. desktop system), you need to install something like nullmailer or esmtp, which forward your local mail to a...

View Article


Answer by crncosta for How to send mail from the command line?

Try to install The Mutt E-mail Client. Other option is using emacs with gnus. Others options available too... IMHO, you should use more details in your questions, or several different answers to your...

View Article

Answer by dv3500ea for How to send mail from the command line?

I have never tried it but there is a mail command that can send mail. See man mail. To test local email: echo message | mail username@localhost

View Article


How to send mail from the command line?

How to send mail from the command line?

View Article

Answer by Steven Penny for How to send mail from the command line?

You can use cURL. Take a file like this:From: Sunday <sunday@gmail.com>To: Monday <monday@gmail.com>Subject: TuesdayWednesdayand send it:curl \--netrc \--mail-rcpt monday@gmail.com...

View Article


Answer by thenewasker for How to send mail from the command line?

I want to add another quite simple yet interesting way to do, provided by AWS (link)So, you need to prepare this text file, save it as input.txt. Please remember to change the values:Replace...

View Article
Browsing all 18 articles
Browse latest View live


Latest Images