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 question you will receive :-) |
|||||||||
|
You can also save the text mentioned in Point 5 into a text file and send it using:
|
|||||||||||||||||||
|
|
Most of the time you shouldn't need to configure an SMTP server you can simply use
You terminate messages with a |
|||||||||
|
usage:
If you don't want to specify your password in the command line (generally not a good thing to do), you can omit that parameter and sendemail will prompt you for the password... and display it on the screen, but at least it won't be in your command line history. |
||||
|
|
mpack is excellent commandline way of sending file attachments.
usage:
|
|||
|
|
|
I have never tried it but there is a |
||||
|
|
|
where filename is the same, it's stands for infile and remotefile |
||||
|
|
|
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 "real" mail server. As command line tools you can install mail or mailx (packages mailutils, heirloom-mailx or bsd-mailx). If you need attachments try biabam. |
|||
|
|
You can send an email from the command line with TelNet or NetCat.Everything is explained here.
|
|||||
|
|
http://ubuntuforums.org/showthread.php?t=780509 may help you. |
|||
|
|
or
|
||||
|
|
|
You need an MTA to send mail. For this, use postfix:
To send email:
|
||||
|
|
|
You can try this:
It works with GNU Mailutils, check the website for more information. |
||||
|
|
protected by jokerdino♦ May 6 at 14:36
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.
