Configure SMTP for outbound emails

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

To configure outbound email, follow these steps:

Edit the installdir/apps/limesurvey/htdocs/application/config/email.php file adding the SMTP configuration:

$config = array();
$config['siteadminemail']     = '';
$config['siteadminbounce']    = '';
$config['siteadminname']      = 'Your Name';

$config['emailmethod']        = 'smtp';
$config['protocol']           = $config['emailmethod'];
$config['emailsmtphost']      = 'localhost';
$config['emailsmtpuser']      = '';
$config['emailsmtppassword']  = '';
$config['emailsmtpssl']       = '';
$config['emailsmtpdebug']     = 0;
$config['maxemails']          = 50;
$config['emailcharset']       = "utf-8";

return $config;  // You

To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.

Last modification November 17, 2020