virtualMachinetiny-tiny-rss

Configure SMTP for outbound emails

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

To configure outbound email, follow these steps:

  • Go to the Tiny Tiny RSS installation folder.

NOTE: Depending on your installation type, the installation folder will be located in the following paths:

  • Approach A (Bitnami installations using system packages): /opt/bitnami/tinytinyrss/

  • Approach B (Self-contained Bitnami installations): /opt/bitnami/apps/tinytinyrss/htdocs/

  • Ensure that the ttrss-mailer-smtp plugin is installed in the plugins.local subfolder. If not, follow the installation instructions in the plugin’s official documentation.

  • Edit the config.php file adding the SMTP configuration. For example, if using a Gmail account, replace USERNAME and PASSWORD with your Gmail account username and password respectively:

      putenv('TTRSS_SMTP_FROM_NAME=Tiny Tiny RSS');
      putenv('TTRSS_SMTP_FROM_ADDRESS=USERNAME@gmail.com');
      putenv('TTRSS_SMTP_HOST=smtp.gmail.com:465');
      putenv('TTRSS_SMTP_LOGIN=USERNAME@gmail.com');
      putenv('TTRSS_SMTP_PASSWORD=PASSWORD');
      putenv('TTRSS_SMTP_SECURE=tls');
    

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

Last modification March 11, 2021