Hello,
Could you please help me?
I am receiving the below erorr when sending emails
I am using zoho as host and smtp and email detailles are added correctly.
{‘retry’: 0, ‘log’: <function log at 0x7f15dcdd3140>, ‘site’: ‘site1.local’, ‘event’: u’sendmail’, ‘method_name’: u’sendmail’, ‘method’: <function sendmail at 0x7f15dce30578>, ‘user’: u’andrei.florea@bit24x7.com’, ‘kwargs’: {‘lang’: u’en’, ‘attachments’: [], ‘recipients’: [u’andrei.florea@bit24x7.com’], ‘cc’: [], ‘print_html’: u’‘, ‘session’: {u’data’: {u’session_expiry’: u’06:00:00’, u’session_country’: ‘RO’, ‘csrf_token’: ‘46c204b5c449b2e1c76bcaceb9c94fad98cc58c32ef523315e65a188’, u’last_updated’: ‘2017-03-09 21:45:24.947731’, u’lang’: u’en’, u’user_type’: None, ‘user’: u’andrei.florea@bit24x7.com’, u’full_name’: None, u’device’: u’desktop’, ‘session_ip’: u’85.204.40.68’}, u’user’: u’andrei.florea@bit24x7.com’, u’sid’: u’fb68bbd7d375181a380b24daf849076559160b79db6fe7ac5a78ca5e’}, ‘communication_name’: ‘75787935d7’, ‘print_format’: u’Standard’}, ‘async’: True, ‘job_name’: u’<function sendmail at 0x7f812c78a398>'}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 61, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 421, in sendmail
recipients=recipients, cc=cc)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py”, line 179, in _notify
_notify(self, print_html, print_format, attachments, recipients, cc)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 133, in _notify
prepare_to_notify(doc, print_html, print_format, attachments)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 237, in prepare_to_notify
print_format=print_format, html=print_html))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1201, in attach_print
“fcontent”: get_print(doctype, name, print_format=print_format, style=style, html=html, as_pdf=True, doc=doc)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1184, in get_print
return get_pdf(html, output = output)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 17, in get_pdf
pdfkit.from_string(html, fname, options=options or {})
File “/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/api.py”, line 68, in from_string
return r.to_pdf(output_path)
File “/home/frappe/frappe-bench/env/src/pdfkit/pdfkit/pdfkit.py”, line 140, in to_pdf
raise IOError(‘wkhtmltopdf reported an error:\n’ + stderr.decode(‘utf-8’))
IOError: wkhtmltopdf reported an error:
Exit with code 1 due to network error: HostNotFoundError