When there is a:
warning: mail() [
function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in E:\TOOL\Apache\htdocs\rzchina_beta\club\includes\mail.inc on line 193.
Unable to send e-mail. Please contact the site administrator if the problem persists.
or appear:
mail(): SMTP server response: 550 5.7.1 incapable to relay for error.
solution:
install IIS built-in SMTP, right click on the SMTP virtual server, and set the following Settings in the popup properties window:
click the access TAB, then click relay, click add out of the popup window, then select the single computer, add IP address to 127.0.0.1. And then make sure you go all the way back. SMTP Server Response: 550 5.7.1 incapable to relay for… The error)
test it out:
< ?php
mail(“[email protected]”,” test “,” test if received “);
?>
Read More:
- [Solved] PHPMailer Error: SMTP ERROR: Failed to connect to server: (0)
- [Solved] PHPMailer Failed to Send Email: SMTP Error: Could not connect to SMTP host.
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- [Solved] ‘node’ command failed to start the project, with an error: “unknown database’ mydb ‘”
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- Laravel5.5 Error: SQLSTATE[42000] Syntax error or access violation 1071 Specified key was too long; max k
- PHP error in Windows: class’ mysqli ‘not found
- 404 solution for WordPress Chinese tag
- [Solved] PHP post Datas json_decode Error: 4 JSON_ERROR_SYNTAX
- nginx.conf php-fpm.conf and php.ini Error among the three_ Differences and relations between log instructions
- ThinkPHP interface cross domain request error [Solved]
- [Solved] PHP Fatal error: Uncaught Error: Class ‘Redis‘ not found in
- [Solved] file_get_contents(): SSL operation failed with code 1
- PHP: How to get the total number of data in the MySQL table (total number of rows)
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- [Solved] Fatal error: Uncaught Error: Class ‘Imagick‘ not found
- [PHP] Solve Call-time pass-by-reference has been removed
- Laravel-admin php artisan admin:install error reporting problem solution
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()