Sponsored Content
Top Forums Shell Programming and Scripting send mail attachment to lotus notes Post 302188732 by era on Thursday 24th of April 2008 06:25:41 AM
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
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
NEWLIST(8)						      System Manager's Manual							NEWLIST(8)

NAME
newlist - Create a new, unpopulated Mailman mailing list. SYNOPSIS
newlist [options] [listname] [listadmin-addr] [admin-password] OPTIONS
-l language, --language=language Make the list's preferred language `language', which must be the (mostly two letter) language code as found under /usr/share/mail- man. -u urlhost, --urlhost=urlhost Gives the list's web interface host name. -e emailhost, --emailhost=emailhost Gives the list's email domain name. -q, --quiet Normally the administrator is notified by email (after a prompt) that their list has been created. This option suppresses that notification and the prompting. -h, --help Print a small help text and exit SECURITY
Including the admin-password on the command line is a small security risk if you have untrusted users on the system. NOTES
You can specify as many of the arguments as you want on the command line: you will be prompted for the missing ones. Every Mailman list has two parameters which define the default host name for outgoing email, and the default URL for all web interfaces. When you configured Mailman, certain defaults were calculated, but if you are running multiple virtual Mailman sites, then the defaults may not be appropriate for the list you are creating. You also specify the domain to create your new list in by typing the command like so: newlist --urlhost=www.example.com mylist where `www.example.com' should be the base hostname for the URL to this virtual hosts's lists. E.g. with this setting people will view the general list overviews at http://www.example.com/mailman/listinfo. Also, www.example.com should be a key in the VIRTUAL_HOSTS mapping in mm_cfg.py/Defaults.py if the email hostname to be automatically determined. If you want the email hostname to be different from the one looked up by the VIRTUAL_HOSTS or if urlhost is not registered in VIR- TUAL_HOSTS, you can specify `emailhost' like so: newlist --urlhost=www.example.com --emailhost=example.com mylist where `example.com' is the mail domain name. If you don't specify emailhost but urlhost is not in the virtual host list, then mm_cfg.DEFAULT_EMAIL_HOST will be used for the email interface. For backward compatibility, you can also specify the domain to create your new list in by spelling the listname like so: mylist@www.example.com where www.example.com is used for `urlhost' but it will also be used for `emailhost' if it is not found in the virtual host table. Note `--urlhost' and `--emailhost' have precedence to this notation. If you spell the list name as just `mylist', then the email hostname will be taken from DEFAULT_EMAIL_HOST and the url will be taken from DEFAULT_URL (as defined in your Defaults.py file or overridden by settings in mm_cfg.py). Note that listnames are forced to lowercase. The list admin address need to be a fully-qualified address, like owner@example.com, not just owner. AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen <tfheen@debian.org> for Debian, but may be used by others. SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman. 2008-06-14 NEWLIST(8)
All times are GMT -4. The time now is 03:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy