How to send multiple files from unix to lotus notes

  • Permalink
  • submit to reddit
  • Email
  • Follow


Hi
I want to send multiple files as attachment from unix HP to lotus
notes, i am using following code, but it only sends one file and
create junk character for second file embedded in body,

Please help.

uuencode gaurav.txt gaurav1.txt > gaurav1.txt;uuencode
get_env_parm.txt get_env_parm.txt1.txt > get_env_parm.txt2.txt;cat
get_env_parm.txt2.txt gaurav1.txt | mailx abc@xyz.org

Thanks
Gaurav ( Guru )

0
Reply Guru 9/7/2007 4:52:21 AM

See related articles to this posting


Guru wrote:
> Hi
> I want to send multiple files as attachment from unix HP to lotus
> notes, i am using following code, but it only sends one file and
> create junk character for second file embedded in body,
> 
> Please help.

[reformatted code for clarity]
> uuencode gaurav.txt gaurav1.txt > gaurav1.txt
> uuencode get_env_parm.txt get_env_parm.txt1.txt > get_env_parm.txt2.txt
> cat get_env_parm.txt2.txt gaurav1.txt | mailx abc@xyz.org

There seems to be some extra information necessary to separate the
attachments.

If I send attachments my mail client creates some additional header
information and separated attachments, each with its own header data.


---<snip>---

[...mail header...]
MIME-Version: 1.0
To: [mail address]
Subject: two attachments
Content-Type: multipart/mixed;
  boundary="------------060708080201020404090309"
X-Provags-ID: [...]==
Envelope-To: [mail address]

This is a multi-part message in MIME format.
--------------060708080201020404090309
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


--------------060708080201020404090309
Content-Type: text/plain;
  name="NAME 1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
  filename="NAME 1"

[here is attachment 1]

--------------060708080201020404090309
Content-Type: text/plain;
  name="NAME 2"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
  filename="NAME 2"

[here is attachment 2]

--------------060708080201020404090309

---<snip>---



Janis

> 
> Thanks
> Gaurav ( Guru )
> 
0
Reply Janis 9/7/2007 9:31:40 AM

> Hi
> I want to send multiple files as attachment from unix HP to lotus
> notes, i am using following code, but it only sends one file and
> create junk character for second file embedded in body,
>

Try using "mutt" (www.mutt.org).

Regards,
   =Adrian=

0
Reply Adrian 9/7/2007 11:41:28 AM

On Thu, 06 Sep 2007 21:52:21 -0700, Guru 
  <guru1309@gmail.com> wrote:
>
>
> Hi
> I want to send multiple files as attachment from unix HP to lotus
> notes, i am using following code, but it only sends one file and
> create junk character for second file embedded in body,
>
> Please help.
>
> uuencode gaurav.txt gaurav1.txt > gaurav1.txt;uuencode
> get_env_parm.txt get_env_parm.txt1.txt > get_env_parm.txt2.txt;cat
> get_env_parm.txt2.txt gaurav1.txt | mailx abc@xyz.org
>
> Thanks
> Gaurav ( Guru )
>
Perhaps if you add a blank line between the uuencoded files.
{ uuencode gaurav.txt gaurav1.txt
  echo
  uuencode get_env_parm.txt get_env_parm.txt1.txt; } | mailx abc@xyz.org
Or use whatever MIME tools are available, like mutt or mpack.
Do you really need to encode a plain text file?  (maybe you do, if it 
contains non-ASCII characters or lines longer than 80 characters).


-- 
Imitation is the sincerest form of television.
		-- Fred Allen
0
Reply Bill 9/8/2007 12:05:03 AM

On 9 8 ,   8 05 , Bill Marcum <marcumb...@bellsouth.net> wrote:
> On Thu, 06 Sep 2007 21:52:21 -0700, Guru
>
>
>
>   <guru1...@gmail.com> wrote:
>
> > Hi
> > I want to send multiple files as attachment from unix HP to lotus
> > notes, i am using following code, but it only sends one file and
> > create junk character for second file embedded in body,
>
> > Please help.
>
> > uuencode gaurav.txt gaurav1.txt > gaurav1.txt;uuencode
> > get_env_parm.txt get_env_parm.txt1.txt > get_env_parm.txt2.txt;cat
> > get_env_parm.txt2.txt gaurav1.txt | mailx a...@xyz.org
>
> > Thanks
> > Gaurav ( Guru )
>
> Perhaps if you add a blank line between the uuencoded files.
> { uuencode gaurav.txt gaurav1.txt
>   echo
>   uuencode get_env_parm.txt get_env_parm.txt1.txt; } | mailx a...@xyz.org
> Or use whatever MIME tools are available, like mutt or mpack.
> Do you really need to encode a plain text file?  (maybe you do, if it
> contains non-ASCII characters or lines longer than 80 characters).
>
> --
> Imitation is the sincerest form of television.
>                 -- Fred Allen-         -
>
> -         -


Try using Mime-Version: 1.0; Content-type: multipart/mixed;
boundary="frontier"


#cat body_gen.html
From:  moon_ils-se@yahoo.com.hk,
To:   moon_ils-se@yahoo.com.hk,
cc: moon_ils-se@yahoo.com.hk,
bcc: moon_ils-se@yahoo.com.hk,
Subject: A simple html test
Mime-Version: 1.0;
Content-type: multipart/mixed; boundary="frontier"
--frontier
Content-Type: text/html; charset="ISO-8859-1";
Content-Transfer-Encoding: 7bit;
<html>
<h2>An important link to look at!</h2>
Here's an <a>
href="http://www.codestore.net/store.nsf/unid/EPSD-587VVX">important
link</a>
</html>
--frontier
Content-Type: text/plan; charset="ISO-8859-1";
Content-Transfer-Encoding: 7bit;


cat body_gen.html > send.tmp
echo "\n\n" >>  send.tmp
uuencode top.txt file.txt >> send.tmp
uuencode top.txt file2.txt >> send.tmp
cat send.tmp  | sendmail $ME <- Your Address

0
Reply moonhk 9/11/2007 8:04:24 AM

On Sep 11, 5:04 am, moonhk <moon_ils...@yahoo.com.hk> wrote:
> On 9 8 ,   8 05 , Bill Marcum <marcumb...@bellsouth.net> wrote:
>
>
>
> > On Thu, 06 Sep 2007 21:52:21 -0700, Guru
>
> >   <guru1...@gmail.com> wrote:
>
> > > Hi
> > > I want to send multiple files as attachment from unix HP to lotus
> > > notes, i am using following code, but it only sends one file and
> > > create junk character for second file embedded in body,
>
> > > Please help.
>
> > > uuencode gaurav.txt gaurav1.txt > gaurav1.txt;uuencode
> > > get_env_parm.txt get_env_parm.txt1.txt > get_env_parm.txt2.txt;cat
> > > get_env_parm.txt2.txt gaurav1.txt | mailx a...@xyz.org
>
> > > Thanks
> > > Gaurav ( Guru )
>
> > Perhaps if you add a blank line between the uuencoded files.
> > { uuencode gaurav.txt gaurav1.txt
> >   echo
> >   uuencode get_env_parm.txt get_env_parm.txt1.txt; } | mailx a...@xyz.org
> > Or use whatever MIME tools are available, like mutt or mpack.
> > Do you really need to encode a plain text file?  (maybe you do, if it
> > contains non-ASCII characters or lines longer than 80 characters).
>
> > --
> > Imitation is the sincerest form of television.
> >                 -- Fred Allen-         -
>
> > -         -
>
> Try using Mime-Version: 1.0; Content-type: multipart/mixed;
> boundary="frontier"
>
> #cat body_gen.html
> From:  moon_ils...@yahoo.com.hk,
> To:   moon_ils...@yahoo.com.hk,
> cc: moon_ils...@yahoo.com.hk,
> bcc: moon_ils...@yahoo.com.hk,
> Subject: A simple html test
> Mime-Version: 1.0;
> Content-type: multipart/mixed; boundary="frontier"
> --frontier
> Content-Type: text/html; charset="ISO-8859-1";
> Content-Transfer-Encoding: 7bit;
> <html>
> <h2>An important link to look at!</h2>
> Here's an <a>
> href="http://www.codestore.net/store.nsf/unid/EPSD-587VVX">important
> link</a>
> </html>
> --frontier
> Content-Type: text/plan; charset="ISO-8859-1";
> Content-Transfer-Encoding: 7bit;
>
> cat body_gen.html > send.tmp
> echo "\n\n" >>  send.tmp
> uuencode top.txt file.txt >> send.tmp
> uuencode top.txt file2.txt >> send.tmp
> cat send.tmp  | sendmail $ME <- Your Address

I have the same problem.
Has anybody successfully sent an e-mail with more than one attachment
using uuencode?
Notes can just recognize the first attachment. GMail is even worst, it
doesn't recognize any attachment.
[]'s Paulo Silvestre Schmitt.

0
Reply wpghost 9/21/2007 12:53:38 AM

On Fri, 21 Sep 2007 00:53:38 -0000, wpghost@gmail.com 
  <wpghost@gmail.com> wrote:
>
>
> I have the same problem.
> Has anybody successfully sent an e-mail with more than one attachment
> using uuencode?
> Notes can just recognize the first attachment. GMail is even worst, it
> doesn't recognize any attachment.
> []'s Paulo Silvestre Schmitt.
>
Use MIME, send each file in a separate email, or tar or zip the files.


-- 
I have great faith in fools -- self confidence my friends call it.
		-- Edgar Allan Poe
0
Reply Bill 9/22/2007 12:04:54 AM
comp.unix.shell 15176 articles. 26 followers. Post

6 Replies
448 Views

Similar Articles

[PageSpeed] 52


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

sending files through lotus notes
Hi, I have this strange problem: In an access application I created I send reports to co-workers through E-mail I use the sendobject command and send the report as a HTML file (acformatHTML) In outlook everything works great. Files are send and recieved as an attachment. Clicking on the attachment opens a new screen with the report displayed as it was intend to be. In outlook however, the report is displayed in the "body" of the message and not as an attachment. The layout is very cluttery and hardly readable. I don't know nothing about Lotus Notes... is there a ...

sending files through lotus notes
Hi, I have this strange problem: In an access application I created I send reports to co-workers through E-mail I use the sendobject command and send the report as a HTML file (acformatHTML) In outlook everything works great. Files are send and recieved as an attachment. Clicking on the attachment opens a new screen with the report displayed as it was intend to be. In outlook however, the report is displayed in the "body" of the message and not as an attachment. The layout is very cluttery and hardly readable. I don't know nothing about Lotus Notes... is there a ...

Sending E-Mail to Multiple Receipents Using Lotus Notes
I'm trying to send e-mail to multiple recipents using Enterprise Guide where the e-mail system is Lotus Notes. When sending to one receipent, it works fine. But multiple receipents does not work. Lotus notes evidently puts the email in this type of bracket: <> So the statement: To=Receipent1.sas is put into the Lotus Notes format: <Receipent1.sas> If I try the following: To=Receipent1.sas,Receipent2.sas,Receipent3.sas Evidently, Lotus Notes puts it in this format: <Receipent1.sas,Receipent2.sas,Receipent3.sas> Has anyone been able to send out e-mail using Lotus No...

sending mail to multiple receivers using Lotus Notes R5
Hi, I'm using following code to send an email using ActiveX to control Lotus Notes R5 : DEFINE VAR msgRecip AS CHAR NO-UNDO INIT "receiver@test.com. DEFINE VAR msgReply AS CHAR NO-UNDO. DEFINE VAR msgCopy AS CHAR NO-UNDO. DEFINE VAR msgbCopy AS CHAR NO-UNDO. DEFINE VAR msgTitle AS CHAR NO-UNDO INIT "TITLE". DEFINE VAR msgBody AS CHAR NO-UNDO. DEFINE VAR msgAttach AS CHAR NO-UNDO. DEFINE VARIABLE EMBED_ATTACHMENT AS INT INIT 1454. DEFINE VARIABLE notesSession AS COM-HANDLE NO-UNDO. DEFINE VARIABLE notesDB AS COM-HANDLE NO-UNDO. DEFINE VARIABLE notesDoc...

Re: Sending E-Mail to Multiple Receipents Using Lotus Notes
Dear SAS-L-ers, Michael F. Murphy posted the following: > > I'm trying to send e-mail to multiple recipents using > Enterprise Guide where the e-mail system is Lotus Notes. > > When sending to one receipent, it works fine. > > But multiple receipents does not work. > > Lotus notes evidently puts the email in this type of bracket: <> > > So the statement: > To=Receipent1.sas > > is put into the Lotus Notes format: > <Receipent1.sas> > > If I try the following: > To=Receipent1.sas,Receipent2.sas,Receipent3.sas > > Evid...

Text files read multiple files into single file, and then recreate the multiple files
Hiya, The title says it all really, but im a newbie to python sort of. I can read in files and write files no probs. But what I want to do is read in a couple of files and output them to one single file, but then be able to take this one single file and recreate the files I put into it. Im really at a loss as to how I go about recovering the files? obviously if i scan for a string that specifys the start and end of each file, theres the chance that the file might contain this term to which would split the files into unwanted chucks of file, which wouldnt be wanted. Any ideas? code snippets...

Re: Sending E-Mail to Multiple Receipents Using Lotus Notes #2
Michael I use the following code format filename mymail email to =('name@dom.com' 'name@verizon.net' ) subject = "&Subject" ; Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977 Bachenot2 <Michael.F.Murphy @SCE.COM> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" ...

notes.ini file in Lotus Notes R5.5
Using Lotus Notes R5.5 (french version), can anyone tell me where to find a list of the possible settings of the Notes.ini file ? http://www.drcc.com/A55711/ref/notesini.nsf ...

Import Multiple Excel Files into Multiple files or One Single File
I was fiddling around with the code below: cd('C:\Users\Excel\Desktop\Excel_Files') d = dir('*.xls'); nfiles = length(d); data = []; for k = 1:nfiles num = xlsread(d(k).name); end It seems to import all files, but overwrites the data in the file, so only the last file imported is actually stored in the Matlab variable. I am trying to figure out a way to import multiple files into multiple Matlab variables. Also, I am trying to figure out a way to import multiple files into one single Matlab variable. Can someone here give me the code to do that? Thanks!...

Import Multiple Excel Files into Multiple files or One Single File #2
Now, the code below seems ok to me, but when I run it, I get this error: Error in read_all_files_in_folder (line 27) xlswrite(fOut, numData, s); numData: empty 0x0 double %folders = {'C:\Users\Excel\Desktop\Excel_Files\'}; %# get input XLS files dName = uigetdir('.', 'Select folder containing Excel XLS files'); if dName==0, error('No folder selected'); end files = dir( fullfile(dName,'*.xls') ); files = strcat(dName, filesep, {files.name}'); %' %# prepare output XLS file [fName dName] = uiputfile({'*.xls' 'E...

[Send to:] How to make Lotus Notes part of right click -> Send to:
Hi I'm new in this group (as I have never worked with Notes before). But my question is: How do I make Lotus Notes one of the options, when you right-click a file on your desktop and choose "Send to:" (or Transfer to) - as the defalut topics: Desktop (as shortcut), Mail recipient, 3�" diskette etc.? Is it possible? What is the "New memo"-program called in Notes, because then I think the solution is clear. I know where to put the fanction - but not what the program is called... Thanks! /kim ...

curl multiple remote files to multiple local files
21-SEP-2006 I'm curling multiple files as in: curl http://someplace.edu/data/file{1,2,3}.txt -O but I'm getting only the first file locally (named as the remote file), and then just a garbage stream on stdout. curl http://someplace.edu/data/file{1,2,3}.txt -o "file_#1" yields the same result as "file_1"... If I redirect, as in curl http://someplace.edu/data/file{1,2,3}.txt >> /usr/local/file I get all the files saved as "file" (no good), but no garbage stream and all file downloads ok. I'm dunced... how do I get separate files without do...

how to create multiple gatelevel files from multiple rtl files during synthesis
When I started this project I only had one file in the prject I got used to the convention of a.v creating a_timesim.v creating a_synthesis.v creating a_timesim.sdf Now that I have 3 modules designed and in separate files I would like to continue the above convention. When I ticked the Generate Multiple Hierarchical Netlist files button I got a,v creates a_a_sim.v b.v creates b_synthese.v Is there any way of continuing the first naming convention. Do I need a different synthesis option or to write a tcl script to do it? Thanks in advance for any pointers. Andy ...

Sending Files to Multiple Recipients
Quick Question: If I send a file that's ~a Meg in size to a bunch of recipients, will Eudora laboriously grind away for each recipient, or will it simultaneously (and relatively quickly) send to all? TIA! On Wed, 04 Feb 2009 18:27:02 -0800, Robert E. Yorke <yorker@deltanet.com> declaimed the following in comp.mail.eudora.ms-windows: > If I send a file that's ~a Meg in size to a bunch of recipients, will > Eudora laboriously grind away for each recipient, or will it > simultaneously (and relatively quickly) send to all? > It will grind away convert...

file selection dialog
Hi, I'm looking for a file selection dialog to enable a user select multiple files and these files may be in multiple directories. I think most file selection dialogs will do multiple files in one dir, but don't know if all do it over multiple dirs. Many thanks for a link to module/info to implement this in Tk. Thanks. ...

Sending Multiple Files with storescu
In regards to Offis dcmtk's storescu: How do you send multiple files with storescu? Is there a maximum number of files that you can send? > How do you send multiple files with storescu? The storescu command line may contain multiple filenames: storescu [options] [peer] [port] [filename1] [filename2] ... > Is there a maximum number of files that you can send? The only limit is the operating system's restriction of the command line length, unless you use command files, in which case the limit is essentially the system's main memory. And here's the usual...

Send and File Multiple Messages
Lotus notes currently has a feature that enables a user to Send and File an email message in a predefined folder. I currently use this to Send and File email messages in a predetermined tickler folder that is a date folder for each workday. However, I would like to Send and File email messages in both a tickler folder and a subject file simultaneously. To do this, I would like to see an action button to Send and File in Multiple Folders that enable the user to choose multiple files for the email when it is sent. The current Send and File requires that you highlight the Receiving fol...

Sending MHTML from Lotus Notes
I'm creating HTML emails within Lotus, but can't quite get pictures included. What I have done is save a web page using the "web archive .mht" option, and this page exists in the file "Google.mht" - the rest of my code is as follows: Set fso = New Scripting.FileSystemObject Set ts = fso.OpenTextFile(App.Path & "\Google.mht") Set doc = db.CreateDocument Call doc.ReplaceItemValue("Form", "Memo") Set body = doc.CreateMIMEEntity Set header = body.CreateHeader("Subject") Call header.SetHeaderVa...

reading in from multiple files, performing operations and printing them to multiple output file
Hi , I have a silly question, I feel I am trying to run a program where I read in bunch of files, all of which = have 2 sets of data and then perform the same mathematical operation on th= ose data from each files and then put them the new values into a different = set of files. I have come up with so far with this. I am having a problem i= n creating and printing the data into new files.=20 pro read_write ;;; will find the input files files=3D FINDFILE('day*') numfiles=3Dn_elements(files) num=3Dintarr(numfiles) ;;;;creating an array which will have the names of the...

difference entre lotus notes with messaging et lotus notes with caloboration.
Nous avons trois serveurs sur lesquels sont install=E9: Lotus domino messaging sur un serveur de relais lotus domino entreprise sur deux serveurs mis en cluster Nous avons des licences lotus notes with messaging et lotus notes with caloboration. Nous voulons supprimer les licences lotus notes with caloborationles pour accerir uniquement ceux de collaboration. ca possera t il un probleme au niveau du cluster ou au niveau Domino web access? Quels sont les custom Domino applications supporte par lotus domino entreprise ? Hi, You should try to ask your question in eng...

Multiple buffers vs multiple frames when opening files from file manager
Hi, Is it possible that when I double-click on a file in a file manager (under MS Windows) I'd only have one xemacs app open and every extra file would go into additional buffer? Now every new "Open" command loads a new xemacs app. Save question about KDE. Thanks, Andrei astebakov@yahoo.com (Andrei Stebakov) writes: > Hi, > > Is it possible that when I double-click on a file in a file manager > (under MS Windows) I'd only have one xemacs app open and every extra > file would go into additional buffer? Now every new "Open" command...

Programm for read lotus notes database nfs off line witout lotus notes
i look for a programm for read nfs data of a PC witout lotus notes application thank you ...

send multiple files via bluetooth at-once?
how to send multiple files via bluetooth at-once? Aamir <Aamir.40cv01@no.email.invalid> wrote in news:Aamir.40cv01 @no.email.invalid: > > how to send multiple files via bluetooth at-once? > > > I'm assuming you mean from Windows Explorer something, not Linux. Copy all the files to the Bluetooth directory. This gives the other computer access to them when it connects to this computers Bluetooth directory. Click and drag to select the ones you want to put on the other computer or use CTRL-click to mark just certain ones without cancelling the last one y...

send multiple files with mailx or sendmail
I know it would work with uuencode, but this are ascii files i would like send as it, can't figure out how to send more than one file echo "From: (`hostname`)" > temp_file echo "To: ale...@xxx.com" >> temp_file echo "Subject: Reports Jobs ">>temp_file echo "Mime-Version: 1.0" >> temp_file echo "Content-Type: mime; name=\"$ARCH1\"" >> temp_file cat ${ARCH1} >> temp_file echo "Mime-Version: 1.0" >> temp_file echo "Content-Type: mime; name=\"$ARCH2\"" >> te...