Zero One Documentation
Theme demo
  • Overview
  • Terms & Guidelines
  • Guide
    • Installation & Setup
      • Local environment
      • Server
      • Default language!
      • Multilanguage website
      • Config options
      • SMTP email options
      • Folder structure
      • htaccess
      • Updating
      • PHP Composer
    • Administration panel
      • Translating panel
    • Site options
      • SEO options
      • Multi-language
    • Theme styling
      • Less/CSS setup
      • Changing Less variables
      • app.less file
      • Customizing elements
      • Helpful classes
    • Page types
      • Page options
    • Blog
      • Comments
      • Article
    • Work (Portfolio)
      • Project page
    • Shop
      • Snipcart
    • Layout Builder
      • Column Options block
      • Subgrid block
      • Card block
      • Text (Writer) block
      • Custom Heading block
      • Custom List block
      • Typed Text block
      • Quote block
      • Button block
      • › 25 more blocks
    • Form Builder (Premium)
    • OLD Page Builder deprecation
    • Tricks
      • Using icons in the content
      • Kirbytext link tag to button
      • Tricks with image classes
      • Adding Google Fonts
      • Custom icons
      • Cookie notice/banner
    • Theme extending
      • Page Transitions (Swup)
      • Contact form extending
      • Self-hosted fonts
      • Adding new templates
      • Adding new Content block (Layout Builder)
    • GDPR
  • More
  • Support
  • Hire us
  • Changelog
  • Credits
  • Affiliate
Powered by GitBook
On this page
  • Where to add SMPT config options?
  • Basic SMTP options
  • SMTP options with authentication

Was this helpful?

  1. Guide
  2. Installation & Setup

SMTP email options

PreviousConfig optionsNextFolder structure

Last updated 10 days ago

Was this helpful?

Email sending will work out of the box on any server that allows PHP emails. This was a default setting on most servers for many years. But because enhanced security is a very important, and hackers find new ways to intercept PHP emails, many hosting providers disallow PHP emails. Although we suggest adding the SMTP config options even if your server allows sending PHP emails.

You can see all Kirby email options on the link below

Where to add SMPT config options?

You add SMPT to your config file (site/config/ folder).

Basic SMTP options

'email' => [
    'transport' => [
      'type' => 'smtp',
      'host' => 'smtp.company.com',
      'port' => 465,
      'security' => true
    ]
  ],

SMTP options with authentication

'email' => [
    'transport' => [
      'type' => 'smtp',
      'host' => 'smtp.server.com',
      'port' => 465,
      'security' => true,
      'auth' => true,
      'username' => '...',
      'password' => '...',
    ]
  ],

We suggest you use , to have a cleaner file structure.

If your website is on the same server as your email server the should be enough.

If your website is not on the same server as your email server, or your server has enhanced security you will need to add .

Multi-environment config setup
basic SMPT config options
SMTP config options with authentication
emailKirby CMS
Logo