Operating System - HP-UX
1846067 Members
2442 Online
110253 Solutions
New Discussion

send e-mail whit http format

 
SOLVED
Go to solution
Pablo Loras Garcia
Occasional Contributor

send e-mail whit http format

Hi,
As I can send mail with HTTP format from hpux 11.i?
Exists some client of mail that does this? thanks in advance

Atte.

Jorge Prado
2 REPLIES 2
Mel Burslan
Honored Contributor
Solution

Re: send e-mail whit http format

Let's say your message looks something like this :



My Home Page




Some properly coded html (no cheating, i.e. every tag must be properly closed, no relying on default closures)




then :

(echo "Content-Type: text/html;charset=us-ascii";\
> echo "Subject: Dummy Subject Line";\
> echo " ";\
> cat msg.html) | sendmail user@domain.com

make sure all the images are addressed fully in your msg.html file, not relative to a certain directory but with all the server name and paths included. Also do not skip the blank echo line in the command as it is the header and content separator and some email clients do not like when this blank line is absent.

I tested using my server and outlook 2002 SP-2 and it works like charm

hope this helps
________________________________
UNIX because I majored in cryptology...
Dave La Mar
Honored Contributor

Re: send e-mail whit http format

Jorge -
We do this on a regular basis. After creating your html format the following would accomplish the email as an attachment.

uuencode Your_formatted_file CPU_RECAP.html | mailx -s "GUMBY MONTHLY CPU REPORT" someone@somwhere.com

Best regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."