Show More
@@ -347,6 +347,10 b' def send_email(recipients, subject, body' | |||||
347 | debug = str2bool(config.get('debug')) |
|
347 | debug = str2bool(config.get('debug')) | |
348 | smtp_auth = email_config.get('smtp_auth') |
|
348 | smtp_auth = email_config.get('smtp_auth') | |
349 |
|
349 | |||
|
350 | if not mail_server: | |||
|
351 | log.error("SMTP mail server not configured - cannot send mail") | |||
|
352 | return False | |||
|
353 | ||||
350 | try: |
|
354 | try: | |
351 | m = SmtpMailer(mail_from, user, passwd, mail_server, smtp_auth, |
|
355 | m = SmtpMailer(mail_from, user, passwd, mail_server, smtp_auth, | |
352 | mail_port, ssl, tls, debug=debug) |
|
356 | mail_port, ssl, tls, debug=debug) |
General Comments 0
You need to be logged in to leave comments.
Login now