1 2 |
|
D:PHPProjPHPWebClass11.2processfeedback.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
A series of errors occurred when using the mail function. It was found that the mail() function could not be used because Sendmail was not downloaded. At the same time, we need to use the smtp service, and Requires support for class.smtp.php: sendmail download address: http://glob.com.au/, class.smtp.php download address: http://www.phpclasses.org/browse/file/920.html.
1.D:PHPProjphp-5.6.10x64sendmailsendmail.ini configuration:
1 2 3 4 5 6 7 8 9 10 |
|
2.PHP.ini preparation:
1 2 3 4 5 6 |
|
Restart httpd, there is a problem that the mail is sent but the recipient cannot get it, and it needs to be solved: we download it again Use the phpmailer class http://sourceforge.net/projects/phpmailer/files/phpmailer-ml/PHPMailer-ML_v1.7.1/ and try to send emails through sock to determine whether the problem lies in the program itself.
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the summer vacation notes 2: PHPMail, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.