How to configure SMTP in an on-premise setup

Problem

I would like to configure an STMP to be used by the unblu server when sending email notification.

Solution

There may be two cases where the unblu server can send email-notifications:

  1. If the unblu server is configured to send email notification for each chat request.
  2. If a chat request is not answered within the predefined timeout a contact form is displayed. Once the form is submitted the unblu server will send an email notification.

The configuration requires two parts:

  1. An SMTP needs to be configured. 
  2. A list of recipients needs to be defined.

Both SMTP and the list of recipients can be configured by adding the following properties into your unblu server configuration file (unblu.properties) and restarting the application container (unblu server):

#you need to configure your smtp here, so replace the "smtp.mailserver.com" with actual server
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.host=smtp.mailserver.com

#configure the port is used, it can be 25 or any other depends on your smtp server
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.port=the-port

#whether the smtp needs authentication, the user needs to be authenticated or not
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.auth=true

#If set to true causes the transport to wait for the response to the QUIT command.
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.quitwait=false

#debug option
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.debug=false

#whether to start STARTTLS or not
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.starttls.enable=true

#your username, if the smpt require authentication
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.user=yourusername

#your password
com.unblu.platform.server.mail.mailservice.properties.mail.smtp.pass=yourpassword

#the list of recipients, it may be a list or just a single email, who is expected to get chat-request as an email
com.unblu.core.chatrequestmail.recipients=["firstrecipients@yourdmain.com","secondrecipients@yourdmain.com"]

Related articles

How can we help?

Chat with us and we will take you through our site!

Read about how we use cookies and how you can control them by clicking "Cookie Settings." If you continue to use this site, you consent to our use of cookies.