Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000817

How can I read / send e-mail in a telnet or SSH session?

Question:

How can I read / send e-mail in a telnet or SSH session?

Answer:

There are numerous different ways a user can send and receive e-mail when connected through a a telnet or SSH session. Below are a few of the most commonly used methods used on a telnet session or at the command line; keep in mind that all of the below solutions are only going to work if you have telnet / SSH access to your e-mail server or ISP. Finally, when sending an e-mail using any of the below methods, you'll be sending an e-mail from the account you're logged into. For example, if your account name was test and you were sending e-mail from the Computer Hope server, the e-mails would be coming from test@computerhope.com.

Notice: Telnet sends all data as cleartext, which means all e-mails you type into the session and send to other users are not encrypted and can be easily read by a user sniffing or eavesdropping on your connection. Any user who is concerned about their privacy should use SSH instead of telnet.

Below is a quick link to each of the sections on this document that explain how to send mail through each of the widely used and available programs.

Send and read e-mail with pine
Send and read e-mail with elm
Send and read e-mail with mail

Send and read e-mail with pine

One of the most easiest and most common ways to send and receive e-mail is to run the pine command. If pine is setup and installed on your computer you're connected to, you can easily send and receive e-mail through its interface. Below is additional information about how this can be done.

Send an e-mail

  1. Open PINE by typing "pine" at the command line and press the "Enter" key. If you receive an error it's likely not installed or configured on the computer you're connected to.
  2. From the main menu arrow, choose the "COMPOSE MESSAGE" option or press the "C" key. From the compose message section, you can address the message to the user(s) you wish to send the e-mail to, the subject and the message.

Read an e-mail

  1. Open PINE by typing "pine" at the command line and press the "Enter" key. If you receive an error it's likely not installed or configured on the computer you're connected to.
  2. Once in PINE, use the arrow keys to select "FOLDER LIST" or press the "L" key. This will either open you directly to the INBOX or allow you to specify the mail folder and the folder you wish to display.
  3. Once in the INBOX, move to the message you wish to read and press the "Enter" key.

At any time you need to get back to the main menu, press the "M" key or press the "Q" key and then "Y" for yes to quit from PINE.

Send and read e-mail with the elm

Although not as user friendly for most users, the elm command is another popular and widely used method for sending and reading e-mail through a SSH / Telnet session or at the command prompt. Below is additional information about how to use this command to send and receive e-mails.

Send an e-mail

  1. Open ELM by typing "elm" at the command line. If you receive an error it's likely not installed or configured on the computer you're connected to.
  2. Press the "m" key to mail a message, type the address of who you're sending the e-mail to, type the subject of the e-mail, type the address of anyone you wish to copy the message to or just press enter for none, and finally type your message you wish to send.
  3. Once done typing the message, press CTRL + X (^X) to exit the message.
  4. Press "y" for yes if you wish to send the message, and the message should be sent.

Read an e-mail

  1. Open ELM by typing "elm" at the command line. If you receive an error it's likely not installed or configured on the computer you're connected to.
  2. If e-mail messages are available to be read, they will be displayed on the first screen; you can either press the arrow up or down and/or the "j" and "k" keys to navigate through the messages.
  3. Once you've selected the message you wish to read, press the "Enter" key.
  4. This will display the message, and if multiple pages press the space bar key to page through the message. If you continue to press space this will also go through each of the messages.

Send and read e-mail with the mail

The mail command is a basic mail program that allows a user to read and send e-mail from the command prompt. Below is additional information about how to use this command to send and receive e-mails.

Send an e-mail

  1. At the command line, type "mail address@domain.com", where address@domain.com is the e-mail address you wish to e-mail.
  2. If executed properly and available, you should be prompted with the subject of the message. Type a subject and press the "Enter" key.
  3. Next, you'll start off on a new line; this new blank line is the message body of your message. Type your e-mail message you wish to send and when completed type a period ( . ) on a blank line and press the "Enter" key to finish the message.
  4. Finally, you'll be prompted for a Cc; if you have any other addresses you wish to send the e-mail to, type those addresses on this line and press the "Enter" key; otherwise, just press the "Enter" key.

Read an e-mail

  1. At the command prompt type "mail" and press the "Enter" key.
  2. If available and you have any new e-mail messages, you should see a listing of e-mails with corresponding numbers next to each of them.
  3. Type the number for the e-mail you wish to read.

Additional information:

  • See our e-mail, telnet, and/or SSH dictionary definitions for additional information about these terms and related terms.
  • Additional information about why you may be unable to send and/or receive e-mail can be found on document CH000460.

 

 

 

 

Index


Category:
Linux help

Companies:
Click here

Related Pages:
 

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope