Answer the question
In order to leave comments, you need to log in
What is the cause of the error when trying to send an email from a form (PHPMailer)?
Hello!
Please help me solve the problem:
I'm trying to set up sending emails to email from a local server (XAMPP Version: 8.0.2). Yandex SMPT is configured, previously connected another mail.php from this address without a handler, everything worked.
I hope for your help.
<br />
<b>Fatal error</b>: Uncaught PHPMailer\PHPMailer\Exception: Невозможно запустить функцию mail(). in C:\xampp\htdocs\testform2\PHPMailer\src\PHPMailer.php:1904
Stack trace:
#0 C:\xampp\htdocs\testform2\PHPMailer\src\PHPMailer.php(1637): PHPMailer\PHPMailer\PHPMailer->mailSend('Date: Fri, 7 Ma...', '<h1>\xD0\xB2\xD0\xB0\xD0\xBC \xD0\xBF\xD1\x80...')
#1 C:\xampp\htdocs\testform2\PHPMailer\src\PHPMailer.php(1468): PHPMailer\PHPMailer\PHPMailer->postSend()
#2 C:\xampp\htdocs\testform2\mail.php(35): PHPMailer\PHPMailer\PHPMailer->send()
#3 {main}
thrown in <b>C:\xampp\htdocs\testform2\PHPMailer\src\PHPMailer.php</b> on line <b>1904</b><br />
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question