Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send mail with attatchment

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How to send mail from HP-UX 11.00 with attatchment.
I am using mailx.
Please suggect.
 
There is also a perl faq about mail attachements.

Dear ainoa, you won't get an attachement like that.
sambi_ind wants to hang a document on the mail body.

regards Gregor Gregor.Weertman@mailcity.com
 

hi,

try this...

1). vi a file for a header.
# vi headfile.txt
insert this to your file...

To: <address or alias>
Cc: <address or alias>
Bcc: <address or alias>
Subject: <subject>
<blank line>
Then beginning on this line, you write the body text you want to include.
<another blank line, just to be safe>

2) # cp headfile.txt > /var/tmp/mailtemp
3) # uuencode /path/datafile datafile >> /var/tmp/mailtemp
4) # cat /var/tmp/mailtemp | sendmail -t
5) # rm /var/tmp/mailtemp

good luck...




 

hi,

try this...

1). vi a file for a header.
# vi headfile.txt
insert this to your file...

To: <address or alias>
Cc: <address or alias>
Bcc: <address or alias>
Subject: <subject>
<blank line>
Then beginning on this line, you write the body text you want to include.
<another blank line, just to be safe>

2) # cp headfile.txt > /var/tmp/mailtemp
3) # uuencode /path/datafile datafile >> /var/tmp/mailtemp
4) # cat /var/tmp/mailtemp | sendmail -t
5) # rm /var/tmp/mailtemp

good luck...




 
shadow eye,

In the unix FAQ is a script that does that.

No need to do make it again.

regards Gregor. Gregor.Weertman@mailcity.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top