10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I want to send an email from unix. I tried following commands:
mailx -s "hello" manish.xxx@xxx.com < echo_manish
and
echo "Testing Mail" | mailx -s "hello" manish.xxx@xxx.com
but in both the commands nothing is happening. I mean it is neither giving any error nor I am receiving... (7 Replies)
Discussion started by: manishdivs
7 Replies
2. Shell Programming and Scripting
Hi,
I know that we would be require HTML to change the font and color of the text of the output, if we wnt to send that through the email.
But I have managed to get below code, can someone look into it and let me know if i can acheive my requirement through this kind of code:
Following can... (9 Replies)
Discussion started by: amit.mathur08
9 Replies
3. Shell Programming and Scripting
Dear Friends,
I have a shell script where the mail is being sent like this:
/usr/lib/sendmail -v ${CPA_ADMIN}
CPA_ADMIN="xx@abc.com"
Can we specify more than one email ids in this variable?
Is ther eany limit to the number of email ids I can specify in this variable, to whom the mail... (3 Replies)
Discussion started by: Radhe
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am using mailx command to send mail through Unix. But I am able to send mail only within my domain. If i want to send mail to some other server, it's not working. Like say If I want to send mail to someone on gmail or yahoo it's not working. but it's working fine within my company domain.... (3 Replies)
Discussion started by: anki_1
3 Replies
5. Programming
Hi Frnds,
I have a task in my project wherein i have to send out a mail from my C++ code.With some file attachements.Please help me in this.
At a higher level wat i can tell is my code generated 3 csv file and i have to send these files as attachement.
My code is executed in unix... (6 Replies)
Discussion started by: electroon
6 Replies
6. UNIX for Dummies Questions & Answers
i am sending mails from my unix server to my mail id
i used sendmail option
previously it ran successfully
now it is not sending mails
what might be the problem
this is the message i am getting in /var/mail/abcdev file
how to rectify this?
----- The following addresses had permanent... (1 Reply)
Discussion started by: trichyselva
1 Replies
7. UNIX for Dummies Questions & Answers
Hello everybody.
Is it possible in unix to send a mail to my acount like (abcd@xyz.com)
if yes then how ??
Thank You !! (6 Replies)
Discussion started by: hellotosatish
6 Replies
8. HP-UX
Dear All,
We have following code to send mails from unix to users. We want to see few sentences of mail in bold font or to hightlight few lines in different colours. Could you please let me know how can we do it in function construct_body.
... (3 Replies)
Discussion started by: yogichavan
3 Replies
9. Shell Programming and Scripting
What are all the things that should be configured in order to send a mail from Unix box.
An eg. program of sending a mail will help me a lot!!!!!!
Thanks in advance
-Om (5 Replies)
Discussion started by: Omkumar
5 Replies
10. Post Here to Contact Site Administrators and Moderators
font courier doesn't seem to work for me -- I get this when I try to use it:
font courier doesn't seem to work for me (6 Replies)
Discussion started by: ropers
6 Replies
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)