I am using "sendmail" to send plain text email by:
open(MAIL,"|$mailprog -t"
print MAIL "To: $recipient\n";
print MAIL "From: $mail_from\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$message\n\n";
close(MAIL);
Now if I want to send rich-text format(with HTML tags), include images, how can I change the codes and implement this?
open(MAIL,"|$mailprog -t"
print MAIL "To: $recipient\n";
print MAIL "From: $mail_from\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$message\n\n";
close(MAIL);
Now if I want to send rich-text format(with HTML tags), include images, how can I change the codes and implement this?