Wiki

Clone wiki

Perch Resource Wiki / Set-SMTP-Server

Setup a SMTP in Perch or Runway

If your having issues with sending emails from the site, you may wish to setup an SMTP server for sending emails. This can be defined in the config.php file of your site.

Step 1: Define server details

The only step required is to add the following details to your config.php with all the correct details, and your done.

define('PERCH_EMAIL_METHOD', 'smtp');
define('PERCH_EMAIL_HOST', 'smtp.domain.co.uk');
define('PERCH_EMAIL_AUTH', true);
define('PERCH_EMAIL_SECURE', 'ssl');
define('PERCH_EMAIL_PORT', 465);
define('PERCH_EMAIL_USERNAME', 'email@domain.co.uk');
define('PERCH_EMAIL_PASSWORD', 'YourPasswordHere');

Here you have it, just change the details to match the smtp server you are using. You can test by logging into Perch or Runway and sending an email from the Admin panel, Settings / Email.

Updated