googlepublify

Configure SMTP for outbound emails

: Google Cloud Platform doesn’t allow SMTP traffic through port 25. Check Google cloud documentation to learn how to use a different port for sending emails from your application.

Edit the /opt/bitnami/publify/config/environments/production.rb file, adding the following SMTP configuration:

Rails.application.configure do
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :address              => '',
    :port                 => '',
    :domain               => '',
    :user_name            => '',
    :password             => '',
    :authentication       => 'plain',
    :enable_starttls_auto => true  }

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

Last modification February 9, 2023