from(1) General Commands Manual from(1)NAME
from - Shows whom mail messages are from
SYNOPSIS
from [-s sender] [user]
The from command prints out the mail header lines in your mailbox file.
OPTIONS
Prints headers for mail sent by sender. Specifies a mail spool directory.
Use this flag if you want to examine a mailbox in a directory other than /usr/spool/mail, which is the system default.
DESCRIPTION
If user is specified, then user's mailbox is examined instead of your own.
EXAMPLES
To display the message headings in your mailbox, enter: from
The names of the senders and the message dates are displayed. To display the message headings for mail sent by a specific user,
enter: from -s dale
Displays only the message headings of the messages sent from user dale. To display the message headings in a specific user's mail-
box, enter: from dawn
The message headings from user dawn's mailbox are displayed, provided you have read permission for dawn's mailbox.
FILES
User mailbox files.
SEE ALSO
Commands: biff(1), mail(1), mailx(1)from(1)
Check Out this Related Man Page
MAIL(1) General Commands Manual MAIL(1)NAME
mail - send and receive electronic mail
SYNOPSIS
mail [-dpqrv] [-f file] [user]
OPTIONS -d Force use of the shell variable MAILER
-f Use file instead of /usr/spool/mail/user as mailbox
-p Print all mail and then exit
-q Quit program if SIGINT received
-r Reverse print order, i.e., print oldest first
-v Verbose mode
EXAMPLES
mail ast # Send a message to ast
mail # Read your mail
DESCRIPTION
Mail is an extremely simple electronic mail program. It can be used to send or receive email on a single MINIX system, in which case it
functions as user agent and local delivery agent. If the flag MAILER is defined in mail.c, it can also call a transport agent to handle
remote mail as well. No such agent is supplied with MINIX.
When called by user with no arguments, it examines the mailbox /usr/spool/mail/user, prints one message (depending on the -r flag), and
waits for one of the following commands:
<newline> Go to the next message
- Print the previous message
!command Fork off a shell and execute command
CTRL-D Update the mailbox and quit (same as q)
d Delete the current message and go to the next one
q Update the mailbox and quit (same as CTRL-D)
p Print the current message again
s [file] Save message in the named file
x Exit without updating the mailbox
To send mail, the program is called with the name of the recipient as an
argument. The mail is sent, along with a postmark line containing the date.
For local delivery, a file named after the recipient in the directory
/usr/spool/mail must be writable.
If the directory /usr/spool/mail does not exist then the mail is
dumped on the console, so that system programs have a way to notify
a user on a system that does not have a mail spool.
MAIL(1)
Hello all,
I am building a shell script. Every morning my shell script will trigger an external system backup script and the backup file (File Name format: "20030929backup.bkp" (i.e)current date + "backup.bkp") will be stored in the backup directory. After successful back, I need to keep only... (9 Replies)
Hi unix lovers,
I have some problem with using mailx. I want to send mail as per the instructions in a file. The mail does not reach to CC recepients.
To get a clearer picture, this is what I am typing on unix prompt.
$
$ mailx ashishp@suntech.com < mail.txt
$
And my mail.txt looks... (7 Replies)
Hi..
How can i use mailx,mail command in Shell Script.
Suppose i gave a condition that x value is above 25 send a mail alert to abc@rediffmail.com.
How can i do this?
Regards
Sollin (16 Replies)
Hello guys,
I'm in desperate need. I need to write a script that behaves like a "mail" shell program.
I've a base of the program -menu and so on, but what I cannot do is how to read messages from /var/mail/user. I would like to separate them as "mail" program does, but I;m just a newbie and... (21 Replies)
Hi,
{SunOS}
I have this mailx -s command in my script and when the script is run,it throws me this message
The flags you gave are used only when sending mail.
Usage:mailx -eiIUdFntBNHvV!~ -T FILE -u USER -h hops -r address -s SUBJECT -f FILE users.
Can you help me how i can send an... (9 Replies)
Can someone please help me with this script, I'm trying to create system backup on AIX, for this I want to first mount the filesystem if it is not mounted, then create the backup and unmount the filesystem but I'm having problem while using the mail command to notify the status of filesystem... (9 Replies)
Hi All
I was wondering if anyone knows how to recover smtp mail text files back into a mail client. I only have the smtp mail text files (eg named 999. etc) and I need to get them visable for the user in his mail client. I can see his other smtp files in his user area on the server but just... (12 Replies)
I sh,
I have bold characters in a file and I want to mail file to an ID.
$cat file
Incorrect or invalid external email IDs in TO and CC list for email_rules:
If I pass this file to mailx
$ cat file | mailx -s "hi" abc@xyz.com
What I get in mail is
(8 Replies)
Hi
I am trying to send mail to an email id having ampersand in it.
Like abc.&.xyz@abc.com
But it is not being sent.
I also tried prefixing backslash before and after ampersand
Need Help:( (17 Replies)
Hi,
Can you please anyone say how to send a mail with carbon copy using the mailx command.
i.e the recipient list should be in CC while the mail reaches them.
I need the option mailx command
Thanks in advance. (11 Replies)
Hi All,
I have a ksh script, in which it sends mail successfully but from root id(root@system.com). I want it to be sent as customid@system.com.
I verified man pages of mail, and found '-u userid' option. But it is failing.
code snippet below:
mail -s "subject" -u $customid... (7 Replies)
I am using Solaris 10, and would like a web gui for mail or can replace the mail server if needed, it doesnt need to be anything elaborate, just something where i can view mail via a web browser rather than command line and hitting 'd' a 1000 times to delete all my cron job mails etc :p
I've... (8 Replies)
i have a file.i want to get that file to my mail.mail services are running.but still i didn't receive the mail.
i have used this command.
mailx -s file1 muraliinfy04@gmail.com < file2.txt.can anybody help me.it's urgent.I am new to unix.
actually file1 i have directed to a file2.txt (8 Replies)