mail merge


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting mail merge
# 1  
Old 02-01-2008
mail merge

dear friends

plese give me full shell script for mail merge facilityu.

i.e. to create a letter file
i.e to create data file
and report maile merge using shell scripitng.

when run the programme ask for fields and store in a file

and from another program when run that mail merge file and store in a separate file


advance thanks
# 2  
Old 02-01-2008
Hello,
can You please tell us if You have done anything so far? I think Your question is unclear. Maybe an example could make Your problem easier to approach.
What do You mean by data file? What kind of data?

If You have a mail program such as mail or mailx installed, it is easy to have it send files or output from another program to someone else. From within a shell script.

The easiest example would be

Code:
#!/bin/sh
echo "Hello" | mail lakris@somedomain.com

or to use output from a program
Code:
#!/bin/sh
df | mail lakris@somedomain.com

Check the man page for mail and the shell You are using. More info about Your problem would be helpful.

/Lakris
# 3  
Old 02-01-2008
mail merge

dear friend i have to maintain / send call letter for employment or i have to give some disclinary letters ......and so on


1st data file

sno name staffno desg ........(fields)
1 rama 12345 driver
2 ramana 12346 shramik


2nd common letter

to
sri (here name field data)
desg (here desg filed data
staffno (here staffno filed data)

(here common letter f saj fksdj kfs fjs f jsfs0)
fjsa fksja fkjsd fklsdj kf sd dlsj fjsdjf jsd fklsad


sd/x
supervisor


3 rd report file

merging of above filed datas at respective places with common letter with page break of each individual letter . and the above entire process with shell programe .

ex: 1st letter will be

to
rama,
driver,
12345,
jkf sakj dfjkds fklsdj lkfslk fsdfs

sd/xx
supervisor



kindly do the need ful.

urs faithfully,
cvvsnm
# 4  
Old 02-01-2008
I am sorry, it is still too unclear.
I hope someone else can help You.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Shell Programming and Scripting

E-mail Output Merge Lines for Some Text..

Hi all. This is the content of the text file used for the e-mail: TM ICP-EDW BILLING REGISTER USAGE BREAKDOWN_01062014.csv TM_ICP_EDWH_FICL_13062014.TXT TM_ICP_EDWH_FICL_16062014.TXT TM_ICP_EDW_Detailed Payment Journal Report_13062014.txt TM_ICP_EDW_Detailed Payment Journal... (9 Replies)
Discussion started by: aimy
9 Replies

3. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

4. Programming

Problem with Mail merge in perl

This could be a simple problem for the perl experts I am trying mail merge in perl The header file is head1 which is as under ... (6 Replies)
Discussion started by: sunnyboy
6 Replies

5. 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

6. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

7. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

8. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies

9. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies
Login or Register to Ask a Question