I got an ERPnext server with a custom domain and 3 addon domain in the Email Domain section.
When I want to send a mail it’s always go into failure and in error log I got the following meassege:
Title
frappe.email.queue.flush
Error
‘NoneType’ object has no attribute ‘strip’
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py”, line 408, in send_one
smtpserver.sess.sendmail(email.sender, recipient.recipient, encode(message))
File “/usr/lib/python3.5/smtplib.py”, line 856, in sendmail
(code, resp) = self.mail(from_addr, esmtp_opts)
File “/usr/lib/python3.5/smtplib.py”, line 533, in mail
self.putcmd(“mail”, “FROM:%s%s” % (quoteaddr(sender), optionlist))
File “/usr/lib/python3.5/smtplib.py”, line 153, in quoteaddr
if addrstring.strip().startswith(‘<’):
AttributeError: ‘NoneType’ object has no attribute ‘strip’
What is the problem? I can’t figure out. And the mails are still don’t work.
I have recreated the domains and the mail accounts too, but still no luck.
Thank you. I’ll check this solution.
But how is this possible when I only send out emails from existing email address?
I mean, i have setup only one email to send emails out.
Another big question is, why are the outgoing mail accounts as incoming. They haven’t turned on incoming. It’s a miracle…
Be back after check your Database related solution.