Skip to content

Commit 21f1441

Browse files
update form submission errors
1 parent cfd677b commit 21f1441

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

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

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

0 commit comments

Comments
 (0)