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
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
The file names are identical but unique?
Do you mean send mail to a bunch of users?
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-queue/17066-multiple-attachments.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:
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!