Sending mutiple files thru email to lotus notes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Sending mutiple files thru email to lotus notes
# 1  
Old 04-09-2007
Question Sending mutiple files thru email to lotus notes

Hi All,

I am currently using the following script to send the single file to one/more email addresses. I need to send mutilple files at same time, are there anyway I could modify the script or write new one to accomplish the same.

Script
***************
#!/bin/ksh

# Author: Manish Vijayvergiya
# Purpose: Script to mail the processed error reports
# ModDate: 20070329

# Create the list of users to mail
export MAILLIST="richard@coty,manish_vijayvergiya@coty"

export MAILCMD=$(which mail)

# Mail the report to the prospective users
${MAILCMD} -s "Error Reports for $(date +%x)" ${MAILLIST} < /ec/rpt/err/pperrorOTHR10.rpt
******************************************

Thanks in advance, please help me.
Manish
# 2  
Old 04-09-2007
Please see the mail topics in the frequently asked questions section.
# 3  
Old 04-10-2007
- u can simply zip multiple files into one file using zip command
- then send that zip file as attachment in the mail


devesh
# 4  
Old 04-16-2007
Sending as attachment

Thanks all for the response.
I did zip the file but it goes as inline text, I want to send as an attachment?

***********************************
#!/bin/ksh

# Author: Manish Vijayvergiya
# Purpose: Script to mail the error report to users based on the chain ids
# ModDate: 20070413

# Create the list of users to mail
export MAILLIST="manish_vijayvergiya@coty"

export MAILCMD=$(which mail)
cd /ec/rpt/err
#ls pperrorOTHR* > fl_list
#set fl=fl_list
tar -cvf rpt.tar pperrorOTHR60.rpt pperrorOTHR10.rpt pperrorOTHR31.rpt
gzip -c rpt.tar > rpt.gz

# Mail the report to the prospective users
${MAILCMD} -s "Error Reports for $(date +%x)" ${MAILLIST} < rpt.gz

*************

Please help?
# 5  
Old 04-16-2007
once again, browse the FAQs
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading a file from Lotus notes DB

Hi, is there any way Unix shell script can directly read a mail on a mail server (Lotus notes) and save it as a text file in a unix directory ? For eg mail can be at abc@xyz.com and the same should be stored at home/script on def.com Thanks in advance, CD (2 Replies)
Discussion started by: cdprasad.ait
2 Replies

2. AIX

Need help on sending emails to Lotus Notes from Unix

Hi, I am new to UNIX and any help is greatly appreciated. Requirement: Need to check the directory and if the directory has some files then an email needs to be sent to the email ID on Lotus Notes. I need help on sending an email to email ID on Lotus Notes notifying that the files... (3 Replies)
Discussion started by: neetutg
3 Replies

3. UNIX for Advanced & Expert Users

Mail with several attachments screwed up in Lotus Notes

Hi everybody! I needto send a mail with several attachments to a foreign recepient using the following command line: neo$ (cat mailbody; uuencode file1 file1.txt; uuencode file2 file2.txt) | mailx -m -s "Mail with two attachments" john.hancock@mailserver.com The result is just fine on... (3 Replies)
Discussion started by: marvin70
3 Replies

4. Solaris

Sending email to Lotus Notes

Hello, I have tired the commands like below to send a email with an attachment to IBM lotus notes uuencode filename filename | Mail -s "subject" addr uuencode filename filename | mailx -s "subject" addr uuencode filename filename | sendmail addr All of three command work. But I can... (0 Replies)
Discussion started by: babykings
0 Replies

5. Shell Programming and Scripting

send mail attachment to lotus notes

Hi All, We have requirement to send lotus notes email attachment to mutiple users. Each user has a separate file name ,but the file name and mail id will be same please help urgent Thanks (2 Replies)
Discussion started by: gwrmk
2 Replies

6. Shell Programming and Scripting

Reading from Lotus notes mail server

Hi, is there any way Unix shell script can directly read a mail on a mail server (Lotus notes) and save it as a text file in a unix directory ? For eg mail can be at abc@xyz.com and the same should be stored at home/script on def.com (0 Replies)
Discussion started by: misenkiser
0 Replies

7. UNIX for Dummies Questions & Answers

Encrypted Email to Lotus notes

I am using mailx command to send automated emails from the Unix to Lotus notes. Recently we got a requirement to send all emails as encrypted emails. I am not sure how I can encrypt an email using unix. Please help!! Thanks (3 Replies)
Discussion started by: Anamika
3 Replies

8. UNIX for Advanced & Expert Users

Lotus Notes on Solaris

Does anyone know if you can run Notes on a SunBlade? This is the last program I need to completely get away from all MS boxes, if I can run my Notes on my Blade I won't need this ratty MS box! Thanks! JP (4 Replies)
Discussion started by: jpeery
4 Replies

9. UNIX for Dummies Questions & Answers

unix to Lotus Notes email attachment

Hi all, I have searched the FAQ and find that there is some threads related to this subject. But can you please give an examples on how to send attachment to Lotus Notes email through UNIX? Since i have gone through the RFC and the URL. But i still have no idea on it. Please give some... (7 Replies)
Discussion started by: wilsonchan1000
7 Replies

10. UNIX for Dummies Questions & Answers

unix to Lotus Notes email attachment

We have been trying to get an email from unix to Lotus Notes to work. We finally got it to work with the following code: cat filename | uuencode filename | mailx -s "subject title" email address Now our problem is that Lotus Notes doesn't show the paper clip icon, indicating an attachment... (3 Replies)
Discussion started by: cowgilm
3 Replies
Login or Register to Ask a Question