http://www.perlmonks.org?node_id=947344


in reply to Email HTML

Maybe even start with learning about MIME headers...
print MAIL "To: $to\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n\n"; print MAIL "Content-type: text/html\n\n";
The headers are judged to be complete when a blank line is encountered.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."