Sending email

From Tux
Revision as of 17:50, 13 January 2018 by Williams (talk | contribs) (Created page with "Once logged into a UNLV CS server such as <code>bobby.cs.unlv.edu</code> you can send email from the terminal (command line / shell prompt) as follows: * <code>mail ''user@do...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Once logged into a UNLV CS server such as bobby.cs.unlv.edu you can send email from the terminal (command line / shell prompt) as follows:

  • mail user@domain.edu
    • This will prompt for a subject and then you can type the body of the mail
    • Hit ctrl-d to send the mail -- EOT (end of transmission) will be displayed
  • mail user@domain.edu < file.cpp
    • This will send file.cpp in the body of the email with no subject line
  • mail user@domain.edu,user2@domain.edu < file.cpp
    • Same as above, but sends to two different email addresses
  • mail -s "subject line here" user@domain.edu < file.cpp
    • Allows you to set the subject

Note: The from: address on your email will be your username @unlv.nevada.edu so replies to that email will go to your Rebelmail account.

For more details on using the Linux mail utility, see this page.