Hi All
Having a few issues setting up ERPNext outgoing email sending sales invoice using gmail email server… I am thinking this may be due to incoming / outgoing security group setup in azure But Im unsure?
I can confirm gmail is setup to allow less secure apps an that port 25 is open in azure incoming security group.
Communications in ERPNext showing as linked and SENT. However no email is being sent.
ERPNext Setup as below:
EMAIL ACCOUNT: Notifications
SERVICE: Gmail
EMAIL ID: ****@.com
PASSWORD: ******
ENABLE OUTGOING: Yes
SMTP SERVER: smtp.gmail.com
USE TLS: Yes
PORT: 587
DEFAULT OUTGOING: Yes
SCHEDULER ERROR AS BELOW
{
“attachments”: “[]”,
“cc”: [],
“communication_name”: “6588cc2353”,
“lang”: “en”,
“print_format”: “Standard”,
“print_html”: “”,
“recipients”: [
“paulhayman@hayora.com”
],
“site”: “site1.local”
}
Traceback (innermost last):
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/tasks.py”, line 231, in sendmail
recipients=recipients, cc=cc)
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py”, line 176, in _notify
notify(self, printhtml, print_format, attachments, recipients, cc)
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 118, in _notify
prepare_to_notify(doc, print_html, print_format, attachments)
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/core/doctype/communication/email.py”, line 208, in prepare_to_notify
print_format=print_format, html=print_html))
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/init.py”, line 1048, in attach_print
“fcontent”: get_print(doctype, name, print_format=print_format, style=style, html=html, as_pdf=True)
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/init.py”, line 1031, in get_print
return get_pdf(html)
File “/home/tractorpartslive/frappe-bench/apps/frappe/frappe/utils/pdf.py”, line 16, in get_pdf
pdfkit.from_string(html, fname, options=options or {})
File “/home/tractorpartslive/frappe-bench/env/src/pdfkit/pdfkit/api.py”, line 68, in from_string
return r.to_pdf(output_path)
File “/home/tractorpartslive/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
Many Thanks
Paul