open-your-eyes wrote: ↑
Mon Oct 12, 2020 5:19 pm
Wich one is better? Wich do you recomand?
What's the difference?
Both methods use SMTP because that's how emails are sent on the Internet.
The difference is that when you choose to use the PHP mail() function, you may be limited to a SMTP server defined in the php.ini configuration file, and there may be some additional email header lines that are added to the emails that will be sent (example: the file name and line number of the PHP script that called mail() ). The mail() function is also not very efficient for large volumes of email (like your site's Mass Email feature) at once because it repeatedly opens and closes the SMTP connection, which is additional overhead.
When you choose the direct SMTP option, your phpBB site connects directly to any SMTP server that you specify in the phpBB Admin configuration, and using a username and password that you supply. Therefore you may not have some additional header lines inserted by PHP when it sends email.
I recommend this option of direct SMTP because it give you the phpBB administrator some more control over how your emails are sent.