10:34:30
--- Mail Configuration ---
10:34:30
--- Mail Configuration ---
10:34:30
Default Mailer (MAIL_MAILER): mailgun
10:34:30
Default Mailer (MAIL_MAILER): mailgun
10:34:30
Default From Address (MAIL_FROM_ADDRESS): hello@example.com
10:34:30
Default From Address (MAIL_FROM_ADDRESS): hello@example.com
10:34:30
Default From Name (MAIL_FROM_NAME): Example
10:34:30
Default From Name (MAIL_FROM_NAME): Example
10:34:30
--------------------------
10:34:30
--------------------------
10:34:30
Attempting to send email via mailer: mailgun
10:34:30
Attempting to send email via mailer: mailgun
10:34:30
Using Mailgun configuration: domain='mg.kokos.io', endpoint='api.eu.mailgun.net' (Secret is SET)
10:34:30
Using Mailgun configuration: domain='mg.kokos.io', endpoint='api.eu.mailgun.net' (Secret is SET)
10:34:30
Failed to send test email using mailgun mailer: Unable to send an email: Forbidden (code 401).
10:34:30
Failed to send test email using mailgun mailer: Unable to send an email: Forbidden (code 401).
10:34:30
A '401 Forbidden' error usually indicates an issue with your Mailgun API key (secret) or domain.
10:34:30
A '401 Forbidden' error usually indicates an issue with your Mailgun API key (secret) or domain.
10:34:30
Please verify the following:
10:34:30
Please verify the following:
10:34:30
1. MAILGUN_DOMAIN ('mg.kokos.io') in your .env file is correct and **verified** in your Mailgun account dashboard.
10:34:30
1. MAILGUN_DOMAIN ('mg.kokos.io') in your .env file is correct and **verified** in your Mailgun account dashboard.
10:34:30
2. MAILGUN_SECRET in your .env file is the correct **Sending API key** for the domain and has necessary permissions.
10:34:30
2. MAILGUN_SECRET in your .env file is the correct **Sending API key** for the domain and has necessary permissions.
10:34:30
3. Both MAILGUN_DOMAIN and MAILGUN_SECRET are correctly referenced in config/services.php under the 'mailgun' key.
10:34:30
3. Both MAILGUN_DOMAIN and MAILGUN_SECRET are correctly referenced in config/services.php under the 'mailgun' key.
10:34:30
Example in config/services.php:
10:34:30
Example in config/services.php:
10:34:30
'mailgun' => [
10:34:30
'mailgun' => [
10:34:30
'domain' => env('MAILGUN_DOMAIN'),
10:34:30
'domain' => env('MAILGUN_DOMAIN'),
10:34:30
'secret' => env('MAILGUN_SECRET'),
10:34:30
'secret' => env('MAILGUN_SECRET'),
10:34:30
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
10:34:30
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
10:34:30
],
10:34:30
],
10:34:30
4. Check the **Mailgun Dashboard Logs** for more specific details about the 401 error. This often provides the exact reason.
10:34:30
4. Check the **Mailgun Dashboard Logs** for more specific details about the 401 error. This often provides the exact reason.
10:34:30
5. Ensure MAIL_FROM_ADDRESS ('hello@example.com') is a valid sending address for your Mailgun domain ('mg.kokos.io').
10:34:30
5. Ensure MAIL_FROM_ADDRESS ('hello@example.com') is a valid sending address for your Mailgun domain ('mg.kokos.io').
10:34:30
Default mailer is 'mailgun', which already failed with the 401 error above. Please review the Mailgun troubleshooting steps.
10:34:30
Default mailer is 'mailgun', which already failed with the 401 error above. Please review the Mailgun troubleshooting steps.