send mail attachment to lotus notes


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting send mail attachment to lotus notes
# 1  
Old 04-24-2008
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  
Old 04-24-2008
The file names are identical but unique?

Do you mean send mail to a bunch of users?

Code:
for user in tom dick harry; do
  uuencode $user/identical.pdf | mailx -s "Your personal PDF" $user@domain.example.com
done

This assumes you have three users, and three directories named after those users. So it will send tom/identical.pdf to tom@domain.example.com, dick/identical.pdf to dick@domain.example.com, and harry/identical.pdf to harry@domain.example.com

If this is not what you wanted, perhaps you can explain in more detail.

See also the FAQ: How do I send email? - The UNIX Forums

Update: Apparently Lotsa Nuts doesn't grok uuencode so you will need something like https://www.unix.com/faq-submission-q...tachments.html

Last edited by era; 04-24-2008 at 07:30 AM.. Reason: Oops, Notes
# 3  
Old 04-24-2008
Quote:
Originally Posted by era
The file names are identical but unique?

Do you mean send mail to a bunch of users?

Code:
for user in tom dick harry; do
  uuencode $user/identical.pdf | mailx -s "Your personal PDF" $user@domain.example.com
done

This assumes you have three users, and three directories named after those users. So it will send tom/identical.pdf to tom@domain.example.com, dick/identical.pdf to dick@domain.example.com, and harry/identical.pdf to harry@domain.example.com

If this is not what you wanted, perhaps you can explain in more detail.

See also the FAQ: How do I send email? - The UNIX Forums

Update: Apparently Lotsa Nuts doesn't grok uuencode so you will need something like https://www.unix.com/faq-submission-q...tachments.html
Yeah, Notes is finicky when it comes to 'uuencode'. One way 'round is to tar up file(s) first and then uuencode it - something along these lines:
Code:
for user in tom dick harry; do
  tar cvf /tmp/$user_identical.tar $user/identical.pdf
  ( uuencode /tmp/$user_identical.tar /tmp/$user_identical.tar) | mailx -s "Your personal PDF" $user@domain.example.com
  \rm -rf /tmp/$user_identical.tar 2>/dev/null
done

Or of course with multiple attachments!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Send Mail With Attachment

Hi, I need to send attachment with email as external attachment. Presently, we are using uuencode to make an attachment but it is going as content of body. We are using below command. uuencode "filename1" "filename2" | mailx -r "$SENDFROM" ${SENDTO} In unix box, -a is not supportable... (1 Reply)
Discussion started by: vamshi929
1 Replies

2. Shell Programming and Scripting

Send mail as attachment

Hi All, I am trying to send mail via unix and attaching file along with that mail, but facing issue while sending. I have tried below commands- 1)- uuencode $prmDirOutput/report_mailbody $prmDirOutput/report_mailbody | mailx -s "Acknowledgment file- $subject" $email_id 2)- mutt -a... (4 Replies)
Discussion started by: Amit786
4 Replies

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

4. Shell Programming and Scripting

How to send a mail with attachment?

Hi, I usually write a file TEST.MAIL like this to send mails: Importance: High Priority: Urgent X-Priority: 1 (Highest) From: user Subject: error ... text body .... and then I launch it (or writre a c-chell that launchs it) by writing: mail a@b.com < /users/.../TEST.MAIL How can... (4 Replies)
Discussion started by: albaalbetti
4 Replies

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

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 Advanced & Expert Users

how to send mail from aix to lotus with dns

hi , before installing dns on my server, all was ok I was able to send message from aix to my lotus notes server thanks to this command: mail -v aaaaaaaaaa@bbbbbbb.fr in my /etc/hosts , there was xx.xx.xx.xx lotus xx.xx.xx.xx server name in my... (3 Replies)
Discussion started by: hubert
3 Replies

8. UNIX for Advanced & Expert Users

send mail to a UNIX machine to my Lotus Notes

Hi, I'am new in system administration, and I would like to send file from my UNIX machine running on Aix 4.3.3 to the Lotus Notes V5 mail of my colleagues . So I heard about the sendmail command, but I don't know excatly how to use it for send my files . Please if you have a idea, help me !!! (1 Reply)
Discussion started by: hugo
1 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