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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
send mail attachment to lotus notes gwrmk Shell Programming and Scripting 2 04-24-2008 06:49 AM
Sending mutiple files thru email to lotus notes lapisguy Shell Programming and Scripting 4 04-16-2007 06:28 PM
Encrypted Email to Lotus notes Anamika UNIX for Dummies Questions & Answers 3 08-19-2004 02:35 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 Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-08-2001
wilsonchan1000 wilsonchan1000 is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 20
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 (permalink)  
Old 11-08-2001
edog edog is offline
Registered User
  
 

Join Date: Sep 2001
Location: Green Bay, WI
Posts: 66
try saomthing like this:

uuencode $HOME/data/FCST.CSV fcst_extract.csv | mailx -s "Fcst Extract" user@company.com
  #3 (permalink)  
Old 11-09-2001
wilsonchan1000 wilsonchan1000 is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 20
I have try it, but the attachment file is in message box, not display clip picture.
Have any methods on do it?
  #4 (permalink)  
Old 01-15-2002
skammer skammer is offline
Registered User
  
 

Join Date: Nov 2001
Posts: 6
Red face 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 (permalink)  
Old 01-15-2002
edog edog is offline
Registered User
  
 

Join Date: Sep 2001
Location: Green Bay, WI
Posts: 66
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 (permalink)  
Old 01-16-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
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 (permalink)  
Old 02-08-2002
shlomstein shlomstein is offline
Registered User
  
 

Join Date: Feb 2002
Location: Philadelphia, PA
Posts: 1
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
Sponsored Links
Closed Thread

Bookmarks

Tags
sendmail

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 04:43 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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