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:
- [PHP] Solve PHP Call to undefined function ldap_connect()
- [Solved] WordPress Upgrade PHP 5.6 to 7.x Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- [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.
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- [Solved] PHP Error: Warning: file_get_contents(): Failed to enable crypto
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- How to Hide index.php
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- How to Solve PHP Fatal error: Namespace declaration statement has to be the very first statement
- How to Solve PHP Error: no package’oniguruma’ found
- PHP: How to parse MHT file into HTML
- PHP Error Object of class mysqli could not be converted to string in
- PHP file download, download failed, nginx open() nginx / fastcgi_ temp/2/10/0000000102“ failed (13: Permission denied)
- PHP: How to get the total number of data in the MySQL table (total number of rows)
- [Solved] PHP getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL
- PHP curl error: SSL certificate problem: unable to get local issuer certificate settlement program
- PHP error in Windows: class’ mysqli ‘not found
- [Solved] PHP installation Phalcon expansion error
- Mac PHP Fatal error: Class ‘Memcache’ not found