E-mail Enable Outgoing Error

Hi,

Enable Outgoing shows error during setting. I’ve tried all the alternate directions, but the problem continues.

The method on the link did not work.

Traceback (most recent call last):
  File "/opt/bench/cloudapp/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 259, in save
return self._save(*args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 295, in _save
self.run_before_save_methods()
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 885, in run_before_save_methods
self.run_method("validate")
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 780, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 1058, in composer
return composed(self, method, *args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 1041, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 774, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 73, in validate
self.check_smtp()
  File "/opt/bench/cloudapp/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 137, in check_smtp
if self.password and not self.no_smtp_authentication:
AttributeError: 'EmailAccount' object has no attribute 'no_smtp_authentication'

Traceback (most recent call last):
  File "/opt/bench/cloudapp/apps/frappe/frappe/app.py", line 55, in application
response = frappe.handler.handle()
  File "/opt/bench/cloudapp/apps/frappe/frappe/handler.py", line 20, in handle
data = execute_cmd(cmd)
  File "/opt/bench/cloudapp/apps/frappe/frappe/handler.py", line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
  File "/opt/bench/cloudapp/apps/frappe/frappe/__init__.py", line 1027, in call
return fn(*args, **newargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 259, in save
return self._save(*args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 295, in _save
self.run_before_save_methods()
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 885, in run_before_save_methods
self.run_method("validate")
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 780, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 1058, in composer
return composed(self, method, *args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 1041, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
  File "/opt/bench/cloudapp/apps/frappe/frappe/model/document.py", line 774, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/opt/bench/cloudapp/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 73, in validate
self.check_smtp()
  File "/opt/bench/cloudapp/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 137, in check_smtp
if self.password and not self.no_smtp_authentication:
AttributeError: 'EmailAccount' object has no attribute 'no_smtp_authentication'

this has already been fixed in the latest update. try running bench update again

Hi, i geht similar error after updating to latest version. I use docker Installation.

Traceback with variables (most recent call last):
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 187, in send
    self.send_an_email(doc, context)
      self = <Notification: Bestätigung Ihrer Beitrittserklärung>
      doc = <Document: Beitrittserklaerung-014>
      context = {'doc': <Document: Beitrittserklaerung-014>, 'alert': <Notification: Bestätigung Ihrer Beitrittserklärung>, 'comments': [{'comment': '\n\n\n    <style>\n        body {\n            font-family: Arial, sans-serif;\n            line-height...', 'by': 'admin@beo-eg.org', 'name': '2o47rhc615'}]}
  File "apps/frappe/frappe/email/doctype/notification/notification.py", line 291, in send_an_email
    frappe.sendmail(
      self = <Notification: Bestätigung Ihrer Beitrittserklärung>
      doc = <Document: Beitrittserklaerung-014>
      context = {'doc': <Document: Beitrittserklaerung-014>, 'alert': <Notification: Bestätigung Ihrer Beitrittserklärung>, 'comments': [{'comment': '\n\n\n    <style>\n        body {\n            font-family: Arial, sans-serif;\n            line-height...', 'by': 'admin@mail.de', 'name': '2o47rhc615'}]}
      formataddr = <function formataddr at 0x7f9111d8f1a0>
      make_communication = <function _make at 0x7f91059bf100>
      subject = 'Bestätigung Ihrer Beitrittserklärung zur Bürger Energie Ortenau eG'
      attachments = [{'print_format_attachment': 1, 'doctype': 'Beitrittserklaerung', 'name': 'Beitrittserklaerung-014', 'print_format': 'Beitrittserklärung', 'print_letterhead': 1, 'lang': 'de'}]
      recipients = ['user@icloud.com']
      cc = []
      bcc = []
      sender = 'Verwaltung <admin@beo-eg.org>'
      message = '<!DOCTYPE html>\n<html>\n<head>\n    <style>\n        body {\n            font-family: Arial, sans-serif;\n            line-height: 1.6;\n            color: #333;\n            margin: 0;\n            padding: 0;\n            background-color: #f9f9f9;\n        }\n        .container {\n            max-width: 600px;\n            margin: 20px auto;\n            padding: 20px;\n            border: 1px solid #ddd;\n            border-radius: 5px;\n            background-color: #ffffff;\n        }\n        .header {\n            font-size: 1.2em;\n            font-weight: bold;\n            margin-bottom: 20px;\n            color: #007bff;\n        }\n        .footer {\n            margin-top: 30px;\n            padding-top: 20px;\n            border-top: 1px solid #ddd;\n            font-size: 0.9em;\n            color: #555;\n        }\n        .footer a {\n            color: #007bff;\n            text-decoration: none;\n        }\n        .footer a:hover {\n            text-decoration: u...
      communication = '2oapmtjioi'
  File "apps/frappe/frappe/__init__.py", line 801, in sendmail
    return builder.process(send_now=now)
      recipients = ['user@icloud.com']
      sender = 'Verwaltung <admin@mail.de>'
      subject = 'Bestätigung Ihrer Beitrittserklärung zur Bürger Energie Ortenau eG'
      message = '<!DOCTYPE html>\n<html>\n<head>\n    <style>\n        body {\n            font-family: Arial, sans-serif;\n            line-height: 1.6;\n            color: #333;\n            margin: 0;\n            padding: 0;\n            background-color: #f9f9f9;\n        }\n        .container {\n            max-width: 600px;\n            margin: 20px auto;\n            padding: 20px;\n            border: 1px solid #ddd;\n            border-radius: 5px;\n            background-color: #ffffff;\n        }\n        .header {\n            font-size: 1.2em;\n            font-weight: bold;\n            margin-bottom: 20px;\n            color: #007bff;\n        }\n        .footer {\n            margin-top: 30px;\n            padding-top: 20px;\n            border-top: 1px solid #ddd;\n            font-size: 0.9em;\n            color: #555;\n        }\n        .footer a {\n            color: #007bff;\n            text-decoration: none;\n        }\n        .footer a:hover {\n            text-decoration: u...
      as_markdown = False
      delayed = True
      reference_doctype = 'Beitrittserklaerung'
      reference_name = 'Beitrittserklaerung-014'
      unsubscribe_method = None
      unsubscribe_params = None
      unsubscribe_message = None
      add_unsubscribe_link = 1
      attachments = [{'print_format_attachment': 1, 'doctype': 'Beitrittserklaerung', 'name': 'Beitrittserklaerung-014', 'print_format': 'Beitrittserklärung', 'print_letterhead': 1, 'lang': 'de'}]
      content = None
      doctype = None
      name = None
      reply_to = None
      queue_separately = False
      cc = []
      bcc = []
      message_id = None
      in_reply_to = None
      send_after = None
      expose_recipients = 'header'
      send_priority = 1
      communication = '2oapmtjioi'
      retry = 1
      now = None
      read_receipt = None
      is_notification = False
      inline_images = None
      template = None
      args = None
      header = None
      print_letterhead = 1
      with_container = False
      email_read_tracker_url = None
      x_priority = 3
      text_content = None
      QueueBuilder = <class 'frappe.email.doctype.email_queue.email_queue.QueueBuilder'>
      builder = <frappe.email.doctype.email_queue.email_queue.QueueBuilder object at 0x7f9107ababd0>
  File "apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 738, in process
    queue_data = self.as_dict(include_recipients=False)
      self = <frappe.email.doctype.email_queue.email_queue.QueueBuilder object at 0x7f9107ababd0>
      send_now = None
      final_recipients = ['user@icloud.com']
      queue_separately = False
  File "apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 783, in as_dict
    mail = self.prepare_email_content()
      self = <frappe.email.doctype.email_queue.email_queue.QueueBuilder object at 0x7f9107ababd0>
      include_recipients = False
      email_account = <EmailAccount: Verwaltung>
      email_account_name = 'Verwaltung'
  File "apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 702, in prepare_email_content
    if email_account.always_bcc:
      self = <frappe.email.doctype.email_queue.email_queue.QueueBuilder object at 0x7f9107ababd0>
      email_account = <EmailAccount: Verwaltung>
builtins.AttributeError: 'EmailAccount' object has no attribute 'always_bcc'

Thankfull for any Help :)!

fixed this by following the instructions from this post :slight_smile:

1 Like