Hi,
Is it possible to send mail from my HP-Ux system with images, rich text? I would like to program in such a way that I have my company's logo(.jpg) image attached in the mail geeting triggered. I would like to send a rich text/HTML email instead of plain text mail to the recipients. Is it possible to send text in colour
Thanking You in advance for your valuable suggestions
Yes, you can.
For example, if you are using sendmail, Perl code might look something like this:
open(SENT,"|/usr/lib/sendmail $_");
print SENT <<EOF;
Mime-Version: 1.0
Content-Type: text/html
Content-Transfer-Encoding: 8BIT
From: tony\@aplawrence.com
Subject: Whatever
(html stuff)
EOF
Or, use the Mail::Sendmail module:
use Mail::Sendmail;
my %mail = ( To => $MailList,
From => $LdapUserEmail,
Subject => $Subject,
smtp => $taskglobals::smtp,
'Content-Type' => 'text/html',
'Content-Transfer-Encoding' => '8BIT',
Message => $body
);
sendmail(%mail) or print "ERROR sending mail\n";