<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ticket search results</title><link>https://forge-allura.apache.org/p/allura/tickets/</link><description>You searched for labels:"SMTP"</description><language>en</language><lastBuildDate>Wed, 05 Jun 2019 13:55:43 -0000</lastBuildDate><item><title>how to configure external smtp server properties in development.ini for configuring mail</title><link>https://forge-allura.apache.org/p/allura/tickets/8292/</link><description>I am able to send mail using the sample python smtp configuration from my local machine using the below code

*sender = 'from@fromdomain.com'
receivers = ['to@todomain.com']

message = """From: From Person &lt;from@fromdomain.com&gt;
To: To Person &lt;to@todomain.com&gt;
Subject: SMTP e-mail test

This is a test e-mail message.
"""

try:
   smtpObj = smtplib.SMTP('**externalServerAddress**:**portNumber**')
   smtpObj.sendmail(sender, receivers, message)         
   print "Successfully sent email"
except SMTPException:
   print "Error: unable to send email"*
   
W.r.to development.ini  I tried configuring the below SMTP parameters 
  
  error_email_from = from@fromdomain.com

; SMTP settings for outgoing mail
smtp_tls = false
smtp_ssl = false

smtp_timeout = 10
smtp_server = **externalServerAddress**
smtp_port = **portNumber**
; Reply-To and From address often used in email notifications:
forgemail.return_path = from@fromdomain.com

  
forgemail.host =  **externalServerAddress**
forgemail.port = **portNumber**
; domain suffix for your mail, change this.  You also need to route *.*.*.forgemail.domain to the above host/port via
; your mail and DNS configuration
forgemail.domain = fromDomain.com

Even after configuring the above parameters, and starting the gunicorn, the mails are not sent from ui.
Am I missing any configuration in development.ini file. 
Could someone assist in setting up the configuration to externalServerAddress in development.ini so that the email could be sent from tickets.
   </description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">karthik</dc:creator><pubDate>Wed, 05 Jun 2019 13:55:43 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/8292/</guid></item></channel></rss>