The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 04:13 AM
send mail to a UNIX machine to my Lotus Notes hugo UNIX for Advanced & Expert Users 1 09-19-2002 10:49 AM
unix to Lotus Notes email attachment wilsonchan1000 UNIX for Dummies Questions & Answers 7 02-09-2002 10:46 PM
unix to Lotus Notes email attachment cowgilm How do I send email? 3 02-12-2001 05:21 PM
unix to Lotus Notes email attachment cowgilm UNIX for Dummies Questions & Answers 3 02-12-2001 05:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-24-2008
gwrmk gwrmk is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 2
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 (permalink)  
Old 04-24-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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 06:30 AM.. Reason: Oops, Notes
  #3 (permalink)  
Old 04-24-2008
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,116
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!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0