Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

In Unix, how do I use Elm to send a file as a mail message from the command line prompt?

Note: The software discussed here is no longer in common use at Indiana University, and UITS may no longer be able to verify the document's accuracy. The UITS Support Center may no longer have the manuals and other materials required to support this software adequately.

To use this procedure, your file must be an ASCII file. If you wish to send a binary file, you must uuencode it first. For more information, see In Unix, how do I uuencode a binary file?

In addition, for the procedure to work, you must run Elm at least once before attempting this procedure. If you have never run Elm:

  1. At the Unix prompt, enter: elm
  2. Each time you are prompted to create a directory, press  y .

  3. At the Elm main screen, press  q  to quit.

  4. When asked to move mail to a received folder, press  n .

    Note: If you press  y , you will not be able to see any mail in your Inbox when you return to your usual mail program.

You are now ready to use Elm in batch mode. At the Unix prompt, enter: elm -s "[subject]" [username1,username2,etc.] < [file] Replace [subject] with the subject line of your message. Replace [username1,username2,etc] with a list of usernames, separated by commas, who will receive the message. Finally, replace [file] with the file you wish to include. Here is an example: elm -s "My resume" dvader@empire.gov,jabba@hutt.com < bobafett.txt

Note: Elm is not available on any UITS systems.

This is document adfr in domain all.
Last modified on May 13, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.