Skip to content

Commit 215daa7

Browse files
update form submission errors
1 parent cfd677b commit 215daa7

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/essentials-for-yootheme-pro/addons/forms/submission-errors.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,29 @@ RewriteCond %{REQUEST_FILENAME} !-d
3838
RewriteCond %{REQUEST_METHOD} GET
3939
RewriteRule ^(.*)/$ /$1 [R=301,NC,L]
4040
```
41+
42+
## Could Not Instantiate Mail Function
43+
44+
Error message:
45+
46+
```text
47+
Could not instantiate mail function.
48+
Error location: Mail.php:xxx in PHPMailer\PHPMailer\PHPMailer->send()
49+
```
50+
51+
### Cause
52+
53+
This error occurs when the server's default mail function cannot be properly instantiated by PHPMailer. This typically happens because:
54+
55+
- The server's PHP `mail()` function is disabled or not configured properly
56+
- The mail system on the server is not functioning
57+
- The hosting environment does not support the default PHP mail function
58+
59+
### Solution
60+
61+
The most reliable solution is to configure your mail addon to use **SMTP** instead of the default PHP mail function. SMTP (Simple Mail Transfer Protocol) provides:
62+
63+
- More reliable mail delivery
64+
- Better error reporting
65+
- Support across virtually all hosting environments
66+
- No dependency on server-side mail configuration

0 commit comments

Comments
 (0)