PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > How to send multiple files from unix to lotus notes
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

How to send multiple files from unix to lotus notes

Réponse
 
LinkBack Outils de la discussion
Vieux 07/09/2007, 05h52   #1
Guru
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to send multiple files from unix to lotus notes

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 .

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 )

  Réponse avec citation
Vieux 07/09/2007, 10h31   #2
Janis Papanagnou
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to send multiple files from unix to lotus notes

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 .


[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 )
>

  Réponse avec citation
Vieux 07/09/2007, 12h41   #3
Adrian Davis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to send multiple files from unix to lotus notes

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

  Réponse avec citation
Vieux 08/09/2007, 01h05   #4
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to send multiple files from unix to lotus notes

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 .
>
> 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
  Réponse avec citation
Vieux 11/09/2007, 09h04   #5
moonhk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to send multiple files from unix to lotus notes

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 .

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

  Réponse avec citation
Vieux 21/09/2007, 01h53   #6
wpghost@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to send multiple files from unix to lotus notes

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 .

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

  Réponse avec citation
Vieux 22/09/2007, 01h04   #7
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to send multiple files from unix to lotus notes

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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17794 seconds with 15 queries