I am able to send mail using the sample python smtp configuration from my local machine using the below code
*sender = 'firstname.lastname@example.org'
receivers = ['email@example.com']
This is a test e-mail message.
smtpObj = smtplib.SMTP('externalServerAddress:portNumber')
smtpObj.sendmail(sender, receivers, message)
print "Successfully sent email"
print "Error: unable to send email"*
W.r.to development.ini I tried configuring the below SMTP parameters
error_email_from = firstname.lastname@example.org
; 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 = email@example.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.
Log in to post a comment.