0% found this document useful (0 votes)
7 views

Send UNIX Email: Monday, May 06, 2013 1:54 PM

This document provides instructions for sending email from the Linux command line using the sendmail utility. It describes how to use the mail or mailx commands to compose and send a basic test email. It also lists common commands for reading and managing email within the mail program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Send UNIX Email: Monday, May 06, 2013 1:54 PM

This document provides instructions for sending email from the Linux command line using the sendmail utility. It describes how to use the mail or mailx commands to compose and send a basic test email. It also lists common commands for reading and managing email within the mail program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Send UNIX Email

Monday, May 06, 2013 1:54 PM

UNIX email utility send notifications, for example, when cron jobs are being processed.
Name: sendmail. Commands: mail or mailx.
Config file is required for this utility to work. Contact our Linux Admins (Infrastructure - Servers) if mail
stops being sent.

Sending quick test email from the Linux command line:


# mail -s Hello world your_email@your_domain.com

Hit the return key and you will come to a new line. Optionally, enter additional text such as This is a
test from my server. Follow up the text by hitting the return key again.

Press the key combination of Control+D to continue. The command prompt will ask you if you want to
mark a copy of the mail to any other address, hit Control+D again. Check your mailbox (you should have
an email within seconds). This command will send out a mail to the specified email id with the subject,
Hello world.

Enter mail to read mail sent to apps mailbox

? print this help message


# display message number #
- print previous
+ next (no delete)
! cmd execute cmd
<CR> next (no delete)
a position at and read newly arrived mail
d [#] delete message # (default current message)
dp delete current message and print the next
dq delete current message and exit
ha display all headers
hd display headers of letters scheduled for deletion
h [#] display headers around # (default current message)
m user mail (and delete) current message to user
n next (no delete)
p print (override any warnings of binary content)
P override default 'brief' mode and display ALL header lines
q, ^D quit
r [args] reply to (and delete) current letter via mail [args]
s [files] save (and delete) current message (default mbox)
u [#] undelete message # (default current message)
w [files] save (and delete) current message without header
x exit without changing mail
y [files] save (and delete) current message (default mbox)

MP Tickets Page 1

You might also like