HTMLA formatted email is a webpage-formatted email. Other emails cannot contain font size, color settings, or images. HTML mail can do this, which means that your email is a webpage. Do not want to useSendmailSend an HTML-format email. Come with me.
First, decode the data from the HTML page, and then call the sendmail command on the unix system.
Example :#! /Usr/local/bin/perl
#
& Readparse;
Print "Content-type: text/htmlnn ";
#
# ********** Begin body ********************
# ********* End body ************************
#
# EACH VALUE IN THE HTML FORM WILL BE CONTAINED IN
# THE @ value array.
Sub readparse {
Read (STDIN, $ user_string, $ ENV {'content _ length '});
If (length ($ ENV {'query _ string'})> 0) {$ user_string = $ ENV {'query _ string '}
};
$ User_string = ~ S/+ // g;
@ Name_value_pairs = split (//, $ user_string );
Foreach $ name_value_pair (@ name_value_pairs ){
($ Keyword, $ value) = split (/=/, $ name_value_pair );
$ Value = ~ S/% ([a-fA-F0-9] [a-fA-F0-9])/pack ("C", hex ($1)/ge;
Push (@ value, "$ value ");
$ User_data {$ keyword} = $ value;
If ($ value = ~ /
How can I learn to use Sendmail to send emails in HTML format!
- Introduction to Sendmail
- How to Set a virtual domain in Sendmail
- Illustration: Sendmail Working Environment
- Smrsh for Sendmail security
- Unauthorized use of Sendmail security
- Simple process for configuring Sendmail in Linux
- Learn more about installing the DNS + Sendmail service in Linux