You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is crap, this depends if your hoster has setup the ini var sendmail_path for you (and maybe protected it, so you can not change it). Even the php manual says it is OPTIONAL.
If I do print_r of params I see object values with something like this, so it looks like you are appending ini variables without even checking if they are already set, necessary or correct.
In any case the code that is trying to set this automatically is bad and worse than leaving params empty, so please remove this code asap.
So I guess your PHPMailer does not work in quite a lot of setups where just mail function is requested. I have 'dumb' wordpress developers whining that they need SMTP auth because this is not working.
I do hope you take into account with your coding that some ini vars are or can be protected (if I remember correctly).
The text was updated successfully, but these errors were encountered:
f1-outsourcing
changed the title
php mail function fails because you are not checking already set ini values.
php mail function fails because you are not checking already set ini values(?)
Jan 12, 2023
Problem description
If I comment out this line, I am able to send email
PHPMailer/src/PHPMailer.php
Line 1937 in 05060d4
Looking at this line
PHPMailer/src/PHPMailer.php
Line 866 in 05060d4
This is crap, this depends if your hoster has setup the ini var sendmail_path for you (and maybe protected it, so you can not change it). Even the php manual says it is OPTIONAL.
https://www.php.net/manual/en/function.mail.php
If I do print_r of params I see object values with something like this, so it looks like you are appending ini variables without even checking if they are already set, necessary or correct.
In any case the code that is trying to set this automatically is bad and worse than leaving params empty, so please remove this code asap.
[email protected]
So I guess your PHPMailer does not work in quite a lot of setups where just mail function is requested. I have 'dumb' wordpress developers whining that they need SMTP auth because this is not working.
I do hope you take into account with your coding that some ini vars are or can be protected (if I remember correctly).
The text was updated successfully, but these errors were encountered: