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 Mac OS X) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). Learn more.

This is required so the application can send notifications via email.

Edit the installdir/apps/owncloud/htdocs/config/config.php and add the following at the end of the file. This example uses a Gmail account. Replace USERNAME and PASSWORD with your Gmail account username and password respectively.

"mail_smtpmode" => 'smtp',
"mail_smtphost" => 'ssl://',
"mail_smtpport" => 465,
"mail_smtpauth" => true,
"mail_smtpname" => '',
"mail_smtppassword" => 'PASSWORD',

NOTE: Configure the administrator email from the ownCloud admin panel under the “Settings -> Personal -> Email” menu.

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

NOTE: If you are using Gmail as the outbound email server and have experienced issues trying to send emails correctly, check the Gmail SMTP troubleshooting page to learn the causes of these issues and how to solve them.

Last modification January 18, 2019