Hello, i have a simple question on sending html email with sendmail. I have this code that works fine but just prints the html please help! thansk in advance, Brett.
open (SENDMAIL, "| $sendmailpath -t") || die "Cant access sendmail at $sendmailpath. Reason: $!";
;
print SENDMAIL "Subject: $subject\n";
print SENDMAIL "From: $from\n";
print SENDMAIL "To: $to\n\n";
print SENDMAIL "Content-type=text/html\n\n";
print SENDMAIL "
<font color=red>dsfdsfdf
";
close (SENDMAIL);
open (SENDMAIL, "| $sendmailpath -t") || die "Cant access sendmail at $sendmailpath. Reason: $!";
;
print SENDMAIL "Subject: $subject\n";
print SENDMAIL "From: $from\n";
print SENDMAIL "To: $to\n\n";
print SENDMAIL "Content-type=text/html\n\n";
print SENDMAIL "
<font color=red>dsfdsfdf
";
close (SENDMAIL);