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

Talk about PHP syntax (5)_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:06:34944browse

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: