![]() Or if your hosting provider gives you SMTP server name / port / credentials to use in web applications running on your server, you could switch phpBB to send email directly through the SMTP server (instead of using PHP mail()), which would give you visibility into at least what the SMTP server knows and errors returned during the SMTP session. ![]() ![]() And having them review what logs they have access to for revealing why the mail sending attempt actually failed - and what could be done about it - regardless of which header or data item you narrow it down to beforehand. To see what specific aspect you have to emulate before the issue starts.īut that seems more like just for curiosity, and the solution is still only going to come from talking to your hosting provider. Just in case you wanted to experiment that way, to use your PHP test script to try and mimic more and more aspects of what you see phpBB attempting to do. I've used custom modifications like the one in the functions_messenger.php attached here to try and figure out differences in the headers and data phpBB was preparing for the PHP mail() function to consume. Because the information phpBB knows is typically only "the PHP mail() function returned FALSE." Which typically, only your hosting provider would have access to, and could tell you what the logs show for why the mail sending attempt failed. Which means "the real information" for why the attempt to call PHP mail() failed is "in the logging of whatever process PHP mail() is configured to invoke on your server." But as you can see, the function itself only returns TRUE or FALSE to indicate success or failure. PhpBB is currently reporting as much information as it can that is returned from the PHP mail() function. But it's not impossible and regardless, we need to find the reason its failing on this server, whether it turns out to be unique to this hosting provider and server or not. It's just hard to make a blanket agreement that "there must be an error in phpBB" when this same code works for the majority using the PHP mail() method of sending mail from phpBB. And even when it is the default sendmail process, the configuration and restrictions of the sendmail processing itself can also be unique to the server, and/or have its own rules for what's considered spam, etc. The process that actually gets invoked when an application calls PHP mail() is not "just one thing" or the same for everyone the person who setup the server and installed PHP gets to define what process actually gets called. And your test script possibly prepares a more plain or simple example of sending mail, without anything like base64 encoding or UTF-8 involved, no abuse headers, etc. I wrote a small php script that works very well : so there must be an error in the phpBB one.Īgree that it at least means there is something the PHP mail() process on this server perhaps "doesn't like" about the specific headers or data that phpBB is preparing. I still can't send a mass mail with the dedicated phpBB function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |