During installation, you can choose to have no email notifications or use Simple Mail Transfer Protocol (SMTP) notifications (as shown in the following figure) by selecting one of the following options at the time of installation:
Email notification information
(Click the image to expand it)
You can also change the notification configuration later manually by using the following procedures, if necessary.
Note
The default smtp_settings.default.rb file is a template. It is only used when there is no smtp_settings.rb file. Both files are located at the following location: <InstallationPath>/releases/4.3.01/<BRPM_Pacth>/WEB-INF/config.
It is not recommended to make any changes to the default smtp_settings.default.rb file. If you want to make changes to the smtp_settings.default.rb file, make a copy of it with the name smtp_settings.default.rb, and make changes to that copy.
To change to no email notifications
config.action_mailer.delivery_method = :smtp
configure_mail_with_gmail(config)
and configure_mail_without_gmail(config)
lines by putting the # symbol at the beginning of the line, as in the following example:#configure_mail_with_gmail(config)
#configure_mail_without_gmail(config)
Restart the server.
def configure_mail(config)
, if it does not already exist:config.action_mailer.delivery_method = :smtp
Open the smtp_settings.rb file in a text editor and update the parameters in the configure_mail_without_gmail
method:
:address => <SMTP_SERVER>, :port => <SMTP_PORT>, :domain => <SMTP_DOMAIN>
Based on your SMTP server configuration, you might need to append additional parameters for SMTP settings:
:authentication => <SMTP_AUTH>, #(Options are - none, plain, login, cram_md5) :user_name => <SMTP_USER>, :password => <SMTP_PASSWORD>, :enable_starttls_auto => <SMTP_TLS> #(Options are - true, false)
Warning
Parameters and values are case-sensitive.
#
character before the code line):configure_mail_without_gmail(config)