The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reading from Lotus notes mail server misenkiser Shell Programming and Scripting 0 10-05-2006 01:13 AM
send mail to a UNIX machine to my Lotus Notes hugo UNIX for Advanced & Expert Users 1 09-19-2002 07:49 AM
unix to Lotus Notes email attachment wilsonchan1000 UNIX for Dummies Questions & Answers 7 02-09-2002 06:46 PM
unix to Lotus Notes email attachment cowgilm How do I send email? 3 02-12-2001 01:21 PM
unix to Lotus Notes email attachment cowgilm UNIX for Dummies Questions & Answers 3 02-12-2001 01:21 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 2
Stumble this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-24-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,614
Stumble this Post!
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 http://www.unix.com/faq-submission-q...tachments.html

Last edited by era; 04-24-2008 at 03:30 AM. Reason: Oops, Notes
Reply With Quote
  #3 (permalink)  
Old 04-24-2008
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,002
Stumble this Post!
Quote:
Originally Posted by era View Post
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 http://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!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0