Visit Our UNIX and Linux User Community


unix to Lotus Notes email attachment


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unix to Lotus Notes email attachment
# 1  
Old 11-08-2001
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 help.

Yours
Wilson
# 2  
Old 11-08-2001
try saomthing like this:

uuencode $HOME/data/FCST.CSV fcst_extract.csv | mailx -s "Fcst Extract" user@company.com
# 3  
Old 11-09-2001
I have try it, but the attachment file is in message box, not display clip picture.
Have any methods on do it?
# 4  
Old 01-15-2002
Power sending a attachment from unix to Lotus Notes

I am trying to do the same thing. The file that sets sent is in the message box. I was wondering if there is a way to send mail as an actual stand alone file.

Thanks
# 5  
Old 01-15-2002
the uuencode works for me on an aix system. The message shows up with the attachment symbol and when I open the message I can see my file, click on it and open it. Maybe these sites will help you out.

http://www3.primushost.com/~kylet/unix-att.html

http://www.uaex.edu/bknox/email_with_attachment.htm
# 6  
Old 01-16-2002
You can use MIME.... You can use a simple, fudged up version, supplying your own headers, like in the script I supplied. It will send a PDF file to the user. Use it like follows:
mailmime.sh myfile.pdf recipient.address@place.com
Code:
#!/bin/sh

my_file="$1"
recip_adr="$2"

echo "\
Subject: File attached for your approval
MIME-Version: 1.0
Content-type: multipart/mixed; boundary="^A^A^A^A^A"
Content-Transfer-Encoding: 7bit

--^A^A^A^A^A
Content-Type: text/plain; charset=US-ASCII; name="BDY.TXT"
Content-Disposition: inline; filename="BDY.TXT"
Content-Transfer-Encoding: 7bit

Please review the attached file.

--^A^A^A^A^A
Content-Type: text/plain; charset=US-ASCII; name="attachment.txt"
Content-Disposition: attachment; filename="attachment.txt"
Content-Transfer-Encoding: 7bit

" > mailfile

cat ${my_file} >> mailfile
echo "
--^A^A^A^A^A--" >> mailfile

sendmail ${recip_adr} < mailfile

This trick is used by our admin here to send out automated text reports to various people. I modified it to be standalone, and it could be modified much more for your needs as well...

Hope this helps.
# 7  
Old 02-08-2002
mailx vs sendmail question

Folks:

I tried what LivinFree posted (fudged up MIME coding) but the only difference is

/usr/bin/mailx "shlomstein@yahoo.com"@mail <thisfil2

on the command line instead of

sendmail ${recip_adr} < mailfile

I'm getting no subject and the entire file in the body. Any ideas what I'm doing wrong? Will mailx work instead of sendmail? Do I need some flag set or something that tells mailx to use the MIME encoded file to get the subject body and attachments instead of what it's doing, which is assuming I have no subject and the entire thisfil2 is the body.

TIA,

Steve
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #99
Difficulty: Easy
Unix has a flat file structure which allows easier access and maintenance of data.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading a file from Lotus notes DB

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 Thanks in advance, CD (2 Replies)
Discussion started by: cdprasad.ait
2 Replies

2. AIX

Need help on sending emails to Lotus Notes from Unix

Hi, I am new to UNIX and any help is greatly appreciated. Requirement: Need to check the directory and if the directory has some files then an email needs to be sent to the email ID on Lotus Notes. I need help on sending an email to email ID on Lotus Notes notifying that the files... (3 Replies)
Discussion started by: neetutg
3 Replies

3. Solaris

Sending email to Lotus Notes

Hello, I have tired the commands like below to send a email with an attachment to IBM lotus notes uuencode filename filename | Mail -s "subject" addr uuencode filename filename | mailx -s "subject" addr uuencode filename filename | sendmail addr All of three command work. But I can... (0 Replies)
Discussion started by: babykings
0 Replies

4. Shell Programming and Scripting

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 Replies)
Discussion started by: gwrmk
2 Replies

5. Shell Programming and Scripting

Sending mutiple files thru email to lotus notes

Hi All, I am currently using the following script to send the single file to one/more email addresses. I need to send mutilple files at same time, are there anyway I could modify the script or write new one to accomplish the same. Script *************** #!/bin/ksh # Author: Manish... (4 Replies)
Discussion started by: lapisguy
4 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 Dummies Questions & Answers

Encrypted Email to Lotus notes

I am using mailx command to send automated emails from the Unix to Lotus notes. Recently we got a requirement to send all emails as encrypted emails. I am not sure how I can encrypt an email using unix. Please help!! Thanks (3 Replies)
Discussion started by: Anamika
3 Replies

8. UNIX for Advanced & Expert Users

Lotus Notes on Solaris

Does anyone know if you can run Notes on a SunBlade? This is the last program I need to completely get away from all MS boxes, if I can run my Notes on my Blade I won't need this ratty MS box! Thanks! JP (4 Replies)
Discussion started by: jpeery
4 Replies

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

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

Featured Tech Videos