return [
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'smtp.server.com',
'port' => 465,
'security' => true,
'auth' => true,
'username' => 'your-username',
'password' => 'your-password',
]
]
];
Don't store credentials directly in the production configuration. You can use the Kirby ENV Plugin to manage sensitive credentials like SMTP usernames and passwords.
Always use real SMTP credentials in production. Some hosting providers block outgoing emails from PHP's mail() function.
You can configure a no-reply email address that will be used as the default sender address:
<?php
return [
'email' => [
'noreply' => 'no-reply@yourdomain.com'
]
];
If not configured, the plugin will automatically generate a no-reply address based on your site's domain (e.g., no-reply@yourdomain.com).
To test if your email configuration is working:
If you're using DDEV you can use it's build in Developer Tool Mailpit for testing.