Skip to main content

Configuration

The Email Manager Plugin requires proper email configuration in your Kirby installation. Add the following settings to your site/config/config.php

SMTP Configuration

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.

No-Reply Email Address

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).

Testing Your Configuration

To test if your email configuration is working:

  1. Set up the configuration as described above
  2. Create a test form using the Email Manager
  3. Submit the form
  4. Check both the recipient's inbox and your spam folder

If you're using DDEV you can use it's build in Developer Tool Mailpit for testing.