Sending email

From Tux
Jump to: navigation, search

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

  • mail
    • 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 < file.cpp
    • This will send file.cpp in the body of the email with no subject line
  • mail, < file.cpp
    • Same as above, but sends to two different email addresses
  • mail -s "subject line here" < file.cpp
    • Allows you to set the subject

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

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