In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
In this issue, the editor will bring you about the usage of php mail. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
The function of php mail is to send e-mail messages directly from the script, and the syntax for this function is "mail (to,subject,message,headers,parameters)", where the parameter to represents the recipient of the message.
This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.
The usage of mail
The mail () function allows you to send e-mail messages directly from the script.
If the delivery of the message is successfully received, true is returned, otherwise false is returned.
Grammar
Mail (to,subject,message,headers,parameters)
Parameters.
To is required. Specify the recipient of the mail.
Subject is required. Specify the subject of the message. This parameter cannot contain any newline characters.
Message is required. Specifies the message to be sent.
Headers is required. Specify additional headers, such as From, Cc, and Bcc.
Parameters is required. Specify additional parameters for the sendmail program.
Description
In the message specified by the message parameter, the lines must be separated by a LF (\ n). Each line cannot exceed 70 characters.
(under Windows) when PHP connects directly to the SMTP server, if a period is found at the beginning of the line, it will be deleted. To avoid this problem, replace a single period with two periods.
Note: you need to keep in mind that just because the mail delivery is accepted does not mean that the mail has arrived at the planned destination.
Examples
Send a simple email:
This is how the editor shares the usage of php mail. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.