Thanks ... I'll give that a shot ... any other suggestions are welcomed ... thank again, Dermot.
________________________________ From: Dermot <paik...@googlemail.com> To: Tony Esposito <tony1234567...@yahoo.co.uk> Cc: Beginners Perl <beginners@perl.org> Sent: Friday, 31 July, 2009 17:00:45 Subject: Re: Perl and HTML 2009/7/31 Tony Esposito <tony1234567...@yahoo.co.uk>: > I am using Perl 5.8.x, Windows XP SP2 and Novell GroupWise email client. > I have written a program to send an email which contains HTML. Issue is that > in the email body the 'body' shows up as HTML text and GroupWise has the > choice to read it in HTML grayed-out (for this email only). In other words, > I get no processed HTML just the HTML text and I can not choose to read it in > HTML (btw - have no such issue with other emails from other sources containg > HTML. I can choose to read it in HTML via GroupWise w/o issues). > > Question: How do I send a email containing HTML that can be read/processed > by GroupWise as HTML? > > Test code snippet: > > #!/usr/bin/perl > > my $mailBody; > > sub do_html() { > $mailBody = <<ENDHTML; > <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> > <HTML> > <HEAD> > <TITLE> > Hello > </TITLE> > </HEAD> > <BODY> > <H1>Hi</H1> > <P>"hello world" HTML document.</P> > </BODY> > </HTML> > ENDHTML > } > > sub do_email() { > use Net::SMTP; Take a look at MIME::Lite[1]. HTML emails are multi-part and as far I know, that not Net::SMTP's game. HTH, Dp. 1) http://search.cpan.org/~rjbs/MIME-Lite-3.024/lib/MIME/Lite.pm -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/