rathena / FluxCP

A web-based Control Panel for rAthena servers written in PHP. Manage player accounts, databases, support tickets, etc via your browser.
GNU Lesser General Public License v3.0
175 stars 207 forks source link

Add SendGrid API Support #395

Closed Akkarinage closed 1 month ago

Akkarinage commented 1 month ago

Adds support for using SendGrid to send emails instead of relying on flimsy email providers with basic SMTP auth.

Added the following config to config/application.php:

'SendGridAPIKey'    => 'your.SG.api.key',   // SendGrid API Key for sending mail. (https://sendgrid.com/docs/Classroom/Send/How_Emails_Are_Sent/api_keys.html)
                    // If this API Key is set, it will be used instead of the SMTP settings.

When not null, FluxCP will use SendGrid's API to send emails. If left as null, SMTP or mail() settings will be used.

Yes, this would be a slimmer PR if we used composer, but alas we do not.