1820072 Members
2541 Online
109608 Solutions
New Discussion

mail format

 
SOLVED
Go to solution
matthew mills
Frequent Advisor

mail format

Sorry about the last tread. What I wrote was confusing. I can send a file from my HPUX 11.00 server to the user. But when the user opens the file in word the page break shows up as a “^L”. How can I send it so that the “^L” is a page break?
I send the file using:
uuencode emaildoc.lst emaildoc.doc | sendmail
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: mail format

I attached a script to the last thread that has the correct code for the job. Just look at the script and take the code you want.

snippet

uuencode $attfile $flename >> $fmesg
cat $fmesg | /usr/sbin/sendmail -t
-- end snippet.

Don't forget to check any smtp gateway boxes. You can do everything right and the smtp relay server can mangle the email.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Orhan Biyiklioglu
Respected Contributor

Re: mail format

You should try to convert the file into dos format before uuencode ing and sending


ux2dos emaildoc.lst > emaildoc2.lst
uuencode emaildoc2.lst emaildoc.doc | sendmail

should work.
Bill Thorsteinson
Honored Contributor

Re: mail format

Control L (^L) is the page break character.
Not all software recognizes it though.
Printers should handle it correctly, even
if the screen doesn't.
matthew mills
Frequent Advisor

Re: mail format

thanks