Home › Forums › Quform PHP › Fatal error: Uncaught. Is it the form or the 365 server?
- This topic has 3 replies, 2 voices, and was last updated 1 week, 6 days ago by
Ally.
- AuthorPosts
- December 2, 2025 at 4:43 pm #37945
fabydesign
ParticipantHello I have the following errors in trying to send form to Office 365.
I do not have access to MIcrosoft setting, the IT guy does. Before asking I need to know where the errors are coming from. Either a bad customization of the form/scripts (my bad) or the wrong info or bad setup from him (Office 365).
As follow:
Fatal error: Uncaught PHPMailer\PHPMailer\Exception: SMTP Error: Could not connect to SMTP host. Failed to connect to server in /home/xxxxx/public_html/quform/vendor/phpmailer/phpmailer/src/PHPMailer.php:2405
Stack trace:
#0 /home/xxxxx/public_html/quform/vendor/phpmailer/phpmailer/src/PHPMailer.php(2175): PHPMailer\PHPMailer\PHPMailer->smtpConnect()
#1 /home/xxxxx/public_html/quform/vendor/phpmailer/phpmailer/src/PHPMailer.php(1798): PHPMailer\PHPMailer\PHPMailer->smtpSend()
#2 /home/xxxxx/public_html/quform/vendor/phpmailer/phpmailer/src/PHPMailer.php(1615): PHPMailer\PHPMailer\PHPMailer->postSend()
#3 /home/xxxxx/public_html/quform/process-file-uploads-FR.php(427): PHPMailer\PHPMailer\PHPMailer->send()
#4 /home/xxxxx/public_html/quform/process-file-uploads-FR.php(479): process()
#5 {main}
thrown in /home/xxxxx/public_html/quform/vendor/phpmailer/phpmailer/src/PHPMailer.php on line 2405
Thank you.December 4, 2025 at 1:14 pm #37947Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
December 9, 2025 at 4:27 am #37955fabydesign
ParticipantHello Ally,
Just got back from talking to the host.
The server does not support OAuth 2.0 for SMTP authentication. OAuth 2.0 is handled on the Microsoft 365 side.
He said, use Microsoft 365’s own SMTP relay or API-based sending (Graph API), not the server’s SMTP service.
Remember that only the IT guy has access to 365.
What can I do on my end, if any?
What customization is possible with your script, if even possible.
Thank you very much.December 9, 2025 at 12:10 pm #37958Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.
