Home > Article > Backend Development > Talk about PHP syntax (5)_PHP tutorial
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