Carbon copy using mailx command in HP-UX


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Carbon copy using mailx command in HP-UX
# 1  
Old 11-21-2010
Carbon copy using mailx command in HP-UX

Can anyone give me the code to carbon copy a mail using mailx command in HP-UX. I want to put the code in shell script.
# 2  
Old 11-21-2010
use list of addresses.

ie
Code:
mailx addr1,addr2

# 3  
Old 11-21-2010
I want to carbon copy (cc) the mail but using the given code mail recipient are bind with to list.
# 4  
Old 11-21-2010
Here is one syntax for mailx...
Code:
(
  echo '~c Cc_EmailAddress'
  echo '~b Bcc_EmailAddress'
  cat FILE
) | mailx -s "Subject" To_EmailAddress

Take a look at the manual pages for mailx, especially the tilde escapes section.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

~c carbon copy in HP-UX

Hi, I am using HP-UX operating system and i am trying to send email using mailx command is given below. below command is working fine. (echo ~c 'define.d@aol.com' cat $mail_body/temp_body)| mailx -s "Hi - This is mail subject" ${to_mail} problem. i want to use cc_maillist list(put... (13 Replies)
Discussion started by: krupasindhu18
13 Replies

2. UNIX for Dummies Questions & Answers

mailx command

Hi, I am seeing that this command is sending mail even when the nawk command in untrue ( does not have any output ). I only want it to send mail, where it goes above the threshold, and has some output. nawk -F'(MOD dn="uid=)|(DEL dn="uid=)|' '/(MOD dn="uid=)|(DEL dn="uid=)/... (2 Replies)
Discussion started by: john_prince
2 Replies

3. Solaris

Mailx command

HI All, I have an unix server , where sendmail command works for sending mail. But if i use mailx command it is not working. Is there any specific settings needed for this. Kindly help. Thanks and Regards Rj (1 Reply)
Discussion started by: jegaraman
1 Replies

4. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

5. Shell Programming and Scripting

Carbon copy for a mail in mailx command

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)
Discussion started by: miltony
11 Replies

6. UNIX for Advanced & Expert Users

mailx command

hi, i want to pass a unix variable as the subject of the mail alongwith a string. My part of code is as below.. week_end_dt=`sqlplus -s rsamart@martdev.world/rsamart<<EOF SET FEED OFF; SET TIMING OFF; SET HEADING OFF; SET PAGESIZE 500; SET LINESIZE 1000; select... (14 Replies)
Discussion started by: Jalkukdi@10
14 Replies

7. UNIX for Advanced & Expert Users

Problem with Carbon copy (CC) option in mailx command

Hi, I have problems with the cc option in mailx command. Just went through some of the similar threads but none provides a satisfactory explanation. I have a script using the mailx command in the following way: (echo `cat mailsub.txt` ; uuencode attachment.csv attachment.csv) | mailx -s... (2 Replies)
Discussion started by: SmithaN
2 Replies

8. Shell Programming and Scripting

mailx command help

Dear All, I need to send a mail to a group ( the address of which is in a .profile file)..My basic mailing functionality isn't working. When i try to run mailx -s "Hello" abc@xyz.com the command does not return to the prompt an runs infinitely. Request you to help me out here along with... (3 Replies)
Discussion started by: kaushikraman
3 Replies

9. UNIX for Advanced & Expert Users

Mailx Command

Hi, mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com<<EOF Hi, ~<!uuencode a.txt a.txt EOF the above code is sending mails, but attachment is not going instead i just get like below ~<!uuencode a.txt a.txt Thanks. (3 Replies)
Discussion started by: shahnazurs
3 Replies

10. UNIX for Dummies Questions & Answers

Carbon Copy to exchange user

Hello, I am trying to send a message to few users on an exchange server. I would like to put few of them as CC. When I send it to myself and CC another user, I receive the e-mail and see the other e-mail address under CC but he doesn't receive the e-mail at all. Any ideas ? I am using... (1 Reply)
Discussion started by: mclevy
1 Replies
Login or Register to Ask a Question