[ERROR]: Sending Email

Hey guys,

Emails aren’t sending, and when I go to the email queue to try to send it manually, I’m getting the following error message:

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 55, in application
    response = frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
    execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 36, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 879, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_queue/email_queue.py", line 32, in send_now
    send_one(doc, now=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 290, in send_one
    from `tabEmail Queue` where name=%s for update''', email, as_dict=True)[0]
IndexError: list index out of range

Anyone know what this means?

Hi @cpurbaugh,

may be you are getting the empty result set !!

Thanks, Makarand

I’m not sure what that means.

Hi @cpurbaugh ,

check your Email Queue table in database,

Thanks, Makarand

How can I do that?