Well, I'm not sure how $smail works, but offhand I'd say that the problem is that you put the content-type line in the message instead of the header. All header info has to go before the two newlines. Try this:
open(MAIL,"| $smail"); print MAIL "From: etucker\n"; print MAIL "To: $ubr_info{'email'}\n"; print MAIL "Subject: Errors on $ubr_info{'IP'}\n"; print MAIL "content-type: text/html\n\n"; print MAIL "<html>"; print MAIL "<p><b> THIS IS A TEST</b></p>"; print MAIL "</html>"; -----Original Message----- From: Tucker, Ernie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 11:10 AM To: 'Timothy Johnson'; Tucker, Ernie; [EMAIL PROTECTED] Subject: RE: perl email This did not work . What am I doing wrong? open(MAIL,"| $smail"); print MAIL "From: etucker\n"; print MAIL "To: $ubr_info{'email'}\n"; print MAIL "Subject: Errors on $ubr_info{'IP'}\n\n"; print MAIL "content-type: text/html"; print MAIL "<html>"; print MAIL "<p><b> THIS IS A TEST</b></p>"; print MAIL "</html>"; Ernest P. Tucker II Network Technician Madison Management Area Charter Communications I can get up at nine and be rested, or I can get up at six and be President. ~ Jimmy Carter, 39th President of the United States -----Original Message----- From: Timothy Johnson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 12:44 PM To: 'Tucker, Ernie'; Timothy Johnson; [EMAIL PROTECTED] Subject: RE: perl email Include this line in the header: Content-Type: text/html And then just write out the rest as simple HTML. It's been a while since I've done it, but if you send it like this, I think it should work. From:[EMAIL PROTECTED] To:[EMAIL PROTECTED] Subject:HTML Mail content-type: text/html <html> <p>Hi</p> <p>This is my normal line.</p> <p><b>This is my bold line.</b></p> <p>Bye.</p> </html> -----Original Message----- From: Tucker, Ernie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 10:38 AM To: 'Timothy Johnson'; Tucker, Ernie; [EMAIL PROTECTED] Subject: RE: perl email how? -----Original Message----- From: Timothy Johnson [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Wednesday, June 26, 2002 12:38 PM To: 'Tucker, Ernie'; [EMAIL PROTECTED] Subject: RE: perl email I'd recommend sending it in html mail. -----Original Message----- From: Tucker, Ernie [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Wednesday, June 26, 2002 10:32 AM To: [EMAIL PROTECTED] Subject: perl email I have a perl scipt that emails certain information to me. I would like a certain line to be in bold or a different color when it is emailed. Is there a way to do this? Ernest P. Tucker II Network Technician Madison Management Area Charter Communications I can get up at nine and be rested, or I can get up at six and be President. ~ Jimmy Carter, 39th President of the United States "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers." "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers." "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers."