Operating System - HP-UX
1826498 Members
1580 Online
109692 Solutions
New Discussion

send html mail from hpux to lotus notes

 
SOLVED
Go to solution
PSS SYS ADMIN
Super Advisor

send html mail from hpux to lotus notes

Hi everyone,
I have to send an email from an hpux box to an email address accessed with Lotus Notes Client.
I've tried to send the email with mailx but the email resulted unreadable.
This is the script:
mailx -s "report" userlotus@lotusclient.com < report.html
How I have to modify this script to send the mail readable?

Regards...
PSS
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: send html mail from hpux to lotus notes

Try adding something like this to your report.html file:

Subject: My Subject
To: recipient@kbcafe.com
From: sender@kbcafe.com
MIME-Version: 1.0
Content-Type: text/html
charset="iso-8859-1"


This is the HTML body of the message.


Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
PSS SYS ADMIN
Super Advisor

Re: send html mail from hpux to lotus notes

the report.html is an automatically generated file and I want to send it via email without modifying it
Oviwan
Honored Contributor

Re: send html mail from hpux to lotus notes

Hi
Write a new file:

#!/usr/bin/ksh
echo "From: blah@blubb.bleh
Subject: report
Content-Type: text/html">message
cat report.html >>message
mailx userlotus@lotusclient.com < message

Regards
Dave La Mar
Honored Contributor
Solution

Re: send html mail from hpux to lotus notes

Just another example similar to what others have said.
Judging from your attempt, you want the HTML as the body of the letter, thus, the following would accomplish this.

echo "To: ${Some_list_of_Addresses}" > $MAIL_FILE
echo "Subject: Some_Title" >> $MAIL_FILE
echo "Content-Type: text/html" >> $MAIL_FILE
echo "" >> $MAIL_FILE
cat ${HTML_FILE} >> $MAIL_FILE

cat $MAIL_FILE | /usr/sbin/sendmail -t

Best of luck.

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."
PSS SYS ADMIN
Super Advisor

Re: send html mail from hpux to lotus notes

Thank you everyone!