Operating System - HP-UX
1752785 Members
5663 Online
108789 Solutions
New Discussion юеВ

How to send mail with attachments from HP-UX

 
raiden
Regular Advisor

How to send mail with attachments from HP-UX

Which Software other thn mutt can be used to send mails with attachment..

I dont prefer mutt as it has lot of other dependencies to be installed which i dont want to install on my prodction System.

Please suggest.

Thanks
5 REPLIES 5
Raj D.
Honored Contributor

Re: How to send mail with attachments from HP-UX

Raiden,

Why not mailx !, with mailx you can send attachment from command line:

Example:
# uuencode File1 File1 | mailx -s "File1 Attached" youremail@domain.com

Also check this out:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1311778


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Matti_Kurkela
Honored Contributor

Re: How to send mail with attachments from HP-UX

Do you mean this package:

http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/mutt-1.5.20/

The list of run-time dependencies includes development tools like bison and flex, which makes no sense as run-time dependencies: an email client should never be dynamically generating and compiling any C code at run-time.

It has been my experience that the dependency lists of the Porting Archive have sometimes been incorrect.

By running "ldd -v" on the main mutt binary (11.23 PA-RISC version), I see it depend only on packages libiconv (which depends on gettext), libidn and ncurses. The other non-script binaries (pgpewrap and pgpring) don't depend on anything else beyond that.

$ ldd -v mutt

find library=/usr/lib/libc.2; required by mutt
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/lib/libdld.2; required by /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2

find library=/usr/lib/libc.2; required by implicit load
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libidn.sl; required by mutt
/usr/local/lib/libidn.sl => /usr/local/lib/libidn.sl

find library=/usr/lib/libc.2; required by /usr/local/lib/libidn.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libiconv.sl; required by /usr/local/lib/libidn.sl
/usr/local/lib/libiconv.sl => /usr/local/lib/libiconv.sl

find library=/usr/lib/libc.2; required by /usr/local/lib/libiconv.sl
/usr/lib/libc.2 => /usr/lib/libc.2

find library=/usr/local/lib/libintl.sl; required by /usr/local/lib/libidn.sl
/usr/local/lib/libintl.sl => /usr/local/lib/libintl.sl

find library=/usr/local/lib/libiconv.sl; required by /usr/local/lib/libintl.sl
/usr/local/lib/libiconv.sl => /usr/local/lib/libiconv.sl

find library=/usr/local/lib/libintl.sl; required by mutt
/usr/local/lib/libintl.sl => /usr/local/lib/libintl.sl

find library=/usr/local/lib/libncurses.sl; required by mutt
/usr/local/lib/libncurses.sl => /usr/local/lib/libncurses.sl

No hard dependency on OpenSSL is evident: perhaps mutt invokes OpenSSL as a separate process. In that case, mutt should work if OpenSSL is not installed, but obviously any SSL functionality would not be available.

I don't see anything that would absolutely require expat, db, gdbm, m4 or perl at run-time either.

MK
MK
Rita C Workman
Honored Contributor

Re: How to send mail with attachments from HP-UX

So many options to mail attachments.

Folks have mentioned uuencode.

My option of preference can be found by following the breadcrumbs that Raj's post will lead you. It is the 'include' statement.
It's free, it's easy, it works well in scripts, your system can do it, and even Clay liked it.

Regards,
Rita
Doug O'Leary
Honored Contributor

Re: How to send mail with attachments from HP-UX

Hey;

uuencode works. You can also script the mime encoding yourself depending on the file you're trying to send. There's another app on the porting center called mpack. I generated a lesson learned page on emailing attachments that goes over the details - avaailable at:

http://www.olearycomputers.com/ll/mail_attach.html

hope that helps.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Steven Schweda
Honored Contributor

Re: How to send mail with attachments from HP-UX

> Please suggest.

Did you try a Forum search for keywords like,
say:
e-mail attachment
?

You might find an old discussion or two that
way.