Command Line Email (gmail) setup
Hey all, Im pretty new to C.L.I/text editing work. So maybe its a bit old-fashioned but Im interested in learning how to send email via the command line. I am running 10.04 32 bit
Situation: I have followed the explicit and step-by-step actions at http://klenwell.com/is/UbuntuCommandLineGmail Question: Upon completion, when trying to send a test email to myself via gmail (from CLI) I get the following error: "msmtp: no recipients found". In CLI below it asks me to explicitly pick a mailx to download. I think I already have mailx as when I type mailx I get "no mail for primary". Thanks in advance! Here is my work Code:
:~$ sudo apt-get install msmtp mailx Code:
# config options: http://msmtp.sourceforge.net/doc/msmtp.html#A-user-configuration-file Code:
# set smtp for mailx |
Unless your CLI environment lacks even rudimentary terminal encoding (like vt100), you may want to consider using a more capable email client than mailx.
You could try using alpine (just sudo apt-get install alpine -- I think it's in universe). It's the successor to the old pine email client, and is probably the easiest cli email client you'll find. It's also about as full-featured as you could want, including a method to store the config on your IMAP server so that all your alpine configs(if you run it on different machines) can be updated at once. Setting up the client is pretty straightforward, too. Just use the arrow keys to navigate to SETUP, press enter, and press C for config. You'll get a long list of options, and there are prompts at the bottom of the page that list the available commands. There are other options for a cli email client including my personal favorite mh, which integrates with the command line, but none that are easier to use. |
Quote:
|
One cant send mail until and unless you give smtp server name to any email client...
You can send mail from your linux system if its server and supports relaying... check for postfix or sendmail service running on your system or not and try sending mail from your CLI on command prompt itself $mail -s "testmail" ........ |
Thanks Netmar
Quote:
|
All times are GMT -5. The time now is 07:40 PM. |