Operating System - HP-UX
1829225 Members
2779 Online
109987 Solutions
New Discussion

Re: Mail with several attachment

 
SOLVED
Go to solution
tatry
Occasional Contributor

Mail with several attachment

Hello,
I'm looking for a HP tool which allows me to send several attachment files in a mail.
I've tried mpack, but it seems that I can only send ONE attachement file at a time.

Regards
Lionel
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: Mail with several attachment

Hi Lional,

You can use ELM for that purpose.
It is standart installed on HP-UX.

Gideon

G. Vrijhoeven
Honored Contributor

Re: Mail with several attachment

hi,

from the commandline:

{
echo "body text"\n
uuencode file1 file1
echo \n
uuencode file2 file2
echo \n etc
}| elm -s "subject" account@domain.com

Hope this helps,

Gideon and Peter Geluk
tatry
Occasional Contributor

Re: Mail with several attachment

Hello Gideon and Peter Geluk

With ELM and the commandline you give me, the attachment file is not in "attachment" (MIME format)... it is in the body of the mail... :-(
Bruno Ganino
Honored Contributor
Bruno Ganino
Honored Contributor

Re: Mail with several attachment

This is the address product (free)
http://www.banyan.com

Platforms: Unix, Windows, Macintosh
Description: Provides users with e-mail capability via native SMTP and a POP-3 mail client with full MIME compliance. Messaging-based workflow enhancements include the ability to place URLs anywhere within the body of a mail message as hot links to WWW sites, multiple attachment support, search capabilities, text support, public and private address books, built-in imaging support, viewers for attachments, automatic message handling and filtering tools, and application and agent connectability.

You can try the connection...
perhaps it goes.
Product: BeyondMail for SMTP - e-mail and workflow automation (free)

Bruno
Torino (Turin) +2H
A. Clay Stephenson
Acclaimed Contributor

Re: Mail with several attachment

Elm will work just fine from the command line and it's quite easy.

Within the body of your email add this:

------------------------------------

This is my text. How are you?


[include /tmp/myattach application/octet-stream base64]

This is some more text in the middle.

[include /tmp/myexcel.xls application/ms-excel base64]

This is a closing message in the email.

----------------------------------------



That will attach /tmp/myattach and /tmp/myexcel.xls. You can include multiple attachments using this method. If you are running 10.20 make sure that you have a MIME enabled version of elm (PHNE_15835 or later).

Then to use it from a script:
elm -s "My Subject" user@mailserver.com < myletter

Where myletter contains the attachment include statement as well as your message text. It is also necessary that you have a .elm directory
under the users home directory because unlike the interactive version of elm the command-line version will not create a .elm directory automatically.

If it ain't broke, I can fix that.
Hoefnix
Honored Contributor

Re: Mail with several attachment

Lionel,

I tried this trick in the past, sending mail to a Lotus Notes mail-client. Then the attachment came in the body of the text.
I didn't bother at that time.

Today I tested it again and in Outlook it showed as an attachment(not in the body text).
I didn't check if it is, or not, in MIME format.

Regards,

Peter Geluk