luceos For mailgun you can now also look at this extension: https://discuss.flarum.org/d/11800-flagrow-mail-drivers-send-email-via-mailgun-mandrill-or-ses-api
sarneeh @luceos Thanks for the fish, but could you please give me a rod? ? As I want to involve somehow in Flarum development it would be cool to know how to get basic logging working. Or this is just some silent error... which sucks ?
luceos I'm not too sure. First off you don't get any errors meaning the mail driver is doing something. Question is what. The mail driver will possibly use the local server to send mail through. Perhaps your server has some sort of mail trap or proxy set up so it will try to send mail. Now with SPF and other spam protection measures the sender domain might not authorise your current domain, which will result in the receiving party (eg gmail) to simply block the mail completely, without warning. You could check the spam folder..
sarneeh @luceos The reason it didn't work was that mail driver got removed from Swiftmailer (a package used by Laravel for sending emails). And as the driver was deprecated, Laravel did not throw any errors on failed sending via this particular driver (swiftmailer/swiftmailer866) The driver got removed on version 6.0 (https://github.com/swiftmailer/swiftmailer/blob/master/CHANGES) Flarum is using version 5.5.* of Laravel's illuminate/mail (https://github.com/flarum/core/blob/master/composer.json#L37) and the newest illuminate/mail package uses version ~6.0 of swiftmailer (https://packagist.org/packages/illuminate/mail#v5.5.40). Should I create an issue on Flarum to remove the default mail driver in the settings? It's very confusing IMO and I've lost a lot of time to debug this case.
luceos sarneeh Flarum is using Laravel 5.1 in beta 7.*; we've only upped to 5.5 for the upcoming beta 8. But yes please open an issue so we can solve this before releasing beta 8. Thanks for investigating this issue completely, much appreciated!
rafaucau luceos How's it going with that? I would like to use the mail() function instead of SMTP because I have no limits for messages sent by PHP
clarkwinkelmann Did we end up not opening an issue for this and forgot about this ? 😬 rafaucau can you confirm you tried selecting the mail driver in the driver dropdown and it's not working ? @luceos do you remember what might have been done or not done ?
luceos I think we should try to push in an upgrade to L6 before stable, that relates to this. As to seeing a reported issue, I have not.. This might have been lost in the abyss of unreported issues.
BingZi-233 luceos The same problem, the mail system of the management page can't work normally, but there is no report information.