Home Backend Development PHP Tutorial Talk about PHP syntax (5)_PHP tutorial

Talk about PHP syntax (5)_PHP tutorial

Jul 21, 2016 pm 04:06 PM
email mail php theme content function send Format text grammar

Text:
To send email online, you need to use the mail() function. The format is as follows:
mail (recipient, subject, content, email file header);
On the Internet, sending an Email to the webmaster usually looks like this: webmaster@163.com In this way, when you click on the link webmaster@163.com, the default email editor will be started to write emails. It is really troublesome. Use mail() function, you can easily program an online mailing page. The recipient of this kind of page is fixed (webmaster@163.com). You need to fill in the recipient address again, and we can also set the theme. For example:
File: email.html


Send an email to the network administrator


Network management reception








Sender:

Subject:

Content: