;\n }\n<\/span>?>\n\n<\/body>\n<\/html><\/pre>\nWith PHP, you can create a feedback form on your site. The following example sends a text message to the specified e-mail address: <\/p>\n\n
\n\n<\/h3>
\n<\/p>Explanation of examples:
\n\n<\/p>1) Windows needs to configure the SMTP of IIS; Linux comes with the sendmail component, no setting is required, and it directly supports the mail function sending function
\n<\/p> 2) Declare various SMTP parameters in php.ini
\n<\/p> 3) Use of mail(\"receiving address\", \"email subject\", \"email content\") function
\n<\/p>
\n
Example 1: Configuring local SMTP server
\n
Step one: php.ini settings:
SMTP = localhost
smtp_port = 25<\/p> sendmail_from=your setting value
Step two: You need to install the SMTP that comes with IIS. Right-click on the SMTP virtual server and make the following settings in the pop-up properties window: <\/p> Click the \"Access\" tab, then click \"Relay\", click \"Add\" in the pop-up window, and then select \"Single Server\" Computer\", add the IP address as \"127.0.0.1\", then
\n
The way back is confirmed.
\n
Step 3: <\/p> mail(\"123456@qq.com\",\"Test mail function of PHP.\",\"hello world! hovertree.com\");<\/p> ? >\n
Recommended: http:\/\/www.cnblogs.com\/roucheng\/p\/3528396.html<\/p>\n
\n\n<\/span><\/span>http:\/\/www.bkjia.com\/PHPjc\/1125077.html<\/span>www.bkjia.com<\/span>true<\/span>http: \/\/www.bkjia.com\/PHPjc\/1125077.html<\/span>TechArticle<\/div>PHP mail, phpmail PHP allows you to send emails directly from scripts. PHP mail() function The PHP mail() function is used to send emails from scripts. Syntax mail(to,subject,message,heade...