Sorry if my english is bad, I'm french
I bought my domain name last 1st may to a french provider, Online.net.
It is a cheap shared web hosting service choosed and used for learning purposes.
My provider offers an application installation service so I installed phpBB v3.1.9 and updated to 3.2.7, with a PHP v7.2 database.
The SRT :
Support Request Template
What version of phpBB are you using? phpBB 3.2.7
What is your board's URL? (can give access if necessary)
Who do you host your board with? Online.net
How did you install your board? I used a tool provided by my host
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What version of phpBB3 did you update from? phpBB 3.2.7
What extensions do you have installed? Best Answer, Copyright in footer, Download System, Editor extension, Forum Icons, Header Banner, Modbreak, Pages, Partner Page, phpBB Topic Prefixes, Posts merging, smilies scroll box, Thanks for posts, Topic Author, Upload Extensions, VigLink
What styles do you currently have installed? proflat
What language(s) is your board currently using? French
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? The problem exists still the initial setup.
Please describe your problem. Sending emails from my phpBB board lands to an email error occurred in the PCA and no mail is sent.
Generated by SRT Generator
So the issue is that trying to send an email from the board or from the ACP leads to an Email error occurred in the ACP log.
Here's a screenshot :
I don't use SMTP so Use SMTP server is set to No in the ACP.
I have contacted my host who made me test the PHP mail() function with a script uploaded to my website and it is working good.
I've tried with Gmail SMTP settings and it's working good too.
But what a pity to pay for a domain name and use another mail provider
I tried to understand why PHP mail() function works with a script but not in phpBB, so I took a look at the includes/functions_messenger.php file and
added this line at line 634 :
Code: Select all
$mail_to = $which_ary['email'];
Code: Select all
$result = phpbb_mail($mail_to, $this->subject, $this->msg, $headers, PHP_EOL, $err_msg);
It seems that for some reason the $mail_to variable isn't understood by my host service and generates the error in the ACP.
But using $which_ary['email'] instead does solve my issue and emails are sent.
So I post this message to try to know if the problem is relative to my host and there is nothing we can do about it, or if it may be solved with an update of functions_messenger.php file ?
I'm ready to make further tests.
Thank you and have a nice day