what are the codes used for setting the subject in the mail command?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers what are the codes used for setting the subject in the mail command?
# 1  
Old 07-12-2007
what are the codes used for setting the subject in the mail command?

Hi,

I am trying to add a subject to the email that is sent, what are the codes used for setting the subject?

or can someone direct me to a site that shows what the other codes are tat i could use with command line

this is the crobjob command i am using that sends the email at the moment.

mysqldump -ce --user=***** --password=******* thedatabasenametosend | gzip | uuencode dbbackup_e.gz | mail db-bu@mail.com



thanks in advacne
# 2  
Old 07-12-2007
mail -s "subject for discussion" user@domain.com
# 3  
Old 07-12-2007
Hi,

Thank you but i did try this before and tried again but also included the " 's but still it does not send anything with this in the line in my cronjob on my unix server.

any ideas why this wont work?

thanks again for your help.

Jason
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. AIX

Mail subject splitted

Hi I have a script that is sending mail and it was working fine. But the last time it run, it gave some errors. It look like the subject was split into many receiver. I am on AIX 6.1. #!/bin/ksh # HOSTNAME=`which hostname` MACHINE=`${HOSTNAME}` # E-mail to inform hci of a stop echo "###... (9 Replies)
Discussion started by: jacquesT
9 Replies

2. Shell Programming and Scripting

Retaining exit codes using nc command

so i'm running remote scripts using the nc command and it's working great. from the monitoring server, i run this from the command line: echo "external_cmd check_mem.sh 10% 15% pipo pi=40,50 po=40,55" | nc -w 35 remotehost 5666 which results in the following when everything is fine:... (3 Replies)
Discussion started by: SkySmart
3 Replies

3. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

4. UNIX for Dummies Questions & Answers

mail -s not showing subject on emails

Hi, I have a cron job that creates backups nightly and sends me an email with output from the script. I'm recieving the email and the output; however, the subject field is always empty. Here is what I have in my crontab 00 23 * * * sh /test_backup/test_script | mail -s "Backups"... (2 Replies)
Discussion started by: orahi001
2 Replies

5. UNIX for Advanced & Expert Users

date need to be add in the subject of the mail.

Hi Am fetching a weekly report pf data..once i fetched the data i need a sent report by mail. In the subject of that mail i want to sent a message like.. SUBJECT :The report had been fetched from (01/12/08 to 07/12/08). I need to send a report like this every week with that particular... (2 Replies)
Discussion started by: bobprabhu
2 Replies

6. UNIX for Dummies Questions & Answers

How to set Subject in 'mail' ?

Hi, I am trying to send some file to some mail ids using mail command in UNIX. Now the issue is I am not able to find how to add "Subject text" to the command. So I am using command like "mail abc@yahoo.com < file_name" Now if I use simple mail command I can set subject text by using... (2 Replies)
Discussion started by: hkapil
2 Replies

7. UNIX for Dummies Questions & Answers

Send a mail with a subject and an attachement

Dear All: I want to send a message to a list of people with a subject and an attachement, currently I am using the following command into a shell script: uuencode $FILENAME.gz $FILENAME.gz | mail john.kennedy@mycompany.com m.m@mycompany.com With this command I can send the message for a... (1 Reply)
Discussion started by: josecollantes
1 Replies
Login or Register to Ask a Question