1834935 Members
2535 Online
110071 Solutions
New Discussion

e-mail and attachments

 
SOLVED
Go to solution
Wessel Baptist
Advisor

e-mail and attachments

Hi,

is it possible to send a file as an attachment by mail on HP9000?
If yes, what must I do?

Tanks
Wessel
logics take you from A to B, imagination takes you anywhere
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: e-mail and attachments

federico_3
Honored Contributor

Re: e-mail and attachments

to send in body of e-mail an attachement do:

mailx -s 'Subjct' user@company.com < file


This should work

federico
Victor BERRIDGE
Honored Contributor

Re: e-mail and attachments

An example:
\cat ${LOGFILE} | \ux2dos | \mailx -s "Cron : ${LOGFILE}" someon@somewhere.com

You need to configure sendmail though...
man sendmail
look on this forum how to, the have been discussions on th subject

Good luck
Victor
Darrel Louis
Honored Contributor

Re: e-mail and attachments

Yes it is possible.

man mailx

-m Do not add MIME header lines Mime Version, Content Type & Content Encoding to the header information while sending mails.

example
# uuencode /tmp/testfile testfile.txt | mailx -m -s 'testje' test@mail.com
Tony Constantine_1
Regular Advisor

Re: e-mail and attachments

We use uuencode
without any problems

uuencode | mailx -s "See Attachment" username@hotmail.com
Rita C Workman
Honored Contributor

Re: e-mail and attachments

Here's a url that shows our preferred solution to this:

http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x41950559ff7cd4118fef0090279cd0f9,00.html

regards,

Re: e-mail and attachments

Hi,
Try elm (you can download it from software.HP.com).

You can also use sendmail and use UUENCODE to send mail-attachments, but the elm is better. The pitty is that elm cannot be automated.

With regards,
Dieter Degrendele
Dieter@Work