Hi, I'm trying to send an email with a link in it. I searched the forum and found out I needed to put a content type line in after the subject. I have done this but the content type line is just printed in the mail. Here's the code:
Here's the email output:
Thanks for reading
Code:
sub setup_email
{
$msgtext =<<__STOP_OF_MESSAGE__;
Content-Type: text/html\n\n
$fields{'the_message'}
<a href="/cgi-bin/reply.pl?id=$fields{'new_id'}">Link</a>
__STOP_OF_MESSAGE__
}
Here's the email output:
Code:
Content-Type: text/html
Test email.
<a href="/cgi-bin/reply.pl?id=2305120052131447">Link</a>
Thanks for reading