LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2015, 07:58 AM   #1
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Blog Entries: 4

Rep: Reputation: 0
Sending email via terminal ubuntu 14.04


Hello,

I am accessing Internet via a proxy server present in my institute.

I am not able to send email via terminal in Ubuntu 14.04 LTS.

Code:
mail -f my_username
mail -f guest
mail
The above commands are producing the correct output.

But then when I try to send a mail, I am asked to key in Cc, the subject and the content.

Having done this I am supposed to hit CTRL -D to finish sending the email. When I do so, nothing happens; as if the terminal has frozen.
When I hit CTRL -C, a message appears that the mail sending failed.

Could proxy server be an issue?

I am also sending the screen shot of the same.
Attached Thumbnails
Click image for larger version

Name:	Email.png
Views:	35
Size:	24.2 KB
ID:	19136  
 
Old 08-14-2015, 05:48 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,572

Rep: Reputation: Disabled
Did you enter ^D on a new line?
(refer to man mail)
 
Old 08-15-2015, 02:28 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Upendra Pratap Singh View Post
Having done this I am supposed to hit CTRL -D to finish sending the email. When I do so, nothing happens; as if the terminal has frozen.
how long did you wait?
anyhow, are you sure it's ctrl-d? a quick glance at mail's man page doesn't seem to suggest that.
Quote:
When I hit CTRL -C, a message appears that the mail sending failed.
this is not surprising, because by hitting ctrl-c you interrupted the process yourself.
 
Old 08-15-2015, 06:20 AM   #4
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Quote:
how long did you wait?
Having typed the body of the message I hit the Ctrl-D immediately (as I was instructed). The terminal remained frozen
as if nothing is happening for about 3 minutes or so. It is then that i hit Ctrl-C keys.


Could you please tell me a technique to send email through ubuntu terminal?

I do not want to enter anything in the configuration files (ssmtp.conf etc.). I want everything to be keyed in at the terminal itself

I have been trying many alternatives such as ssmtp, sendmail, mpack etc. But i am facing one challenge or the other.
 
Old 08-16-2015, 03:19 AM   #5
fshah
Member
 
Registered: Apr 2013
Posts: 45

Rep: Reputation: 0
Try using this

http://askubuntu.com/questions/49933...al-mail-client
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sending email still send to email to control account although it deleted from useres ahmedsa Linux - Server 3 04-10-2015 04:22 AM
Sending email from Ubuntu server to gmail. bluesword1969 Linux - Server 5 02-09-2010 03:39 PM
sending raw data to a USB device from terminal in ubuntu raphtor Linux - Networking 1 01-25-2010 04:37 AM
Problem sending email through new email server bigben747 Linux - Server 3 01-26-2009 05:16 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration