Hello,
Just configured external email accounts (odoo is working on vps, while my mails provider works on other servers); configuring outgoing & incoming mail seem to be successful (odoo says it works at least).
I am able to send 'plain' mail (for example by 'reply' to any mail from inbox history); in logs I see after:
2014-11-17 12:40:40,503 1993 INFO MundoMio openerp.addons.mail.mail_mail: Mail with ID 9 and Message-Id u'<1416228037.600449085235596.120677993934762-openerp-6-sale.order@xxxxxxxxx.ovh.net>' successfully sent
What is interesting when trying to send any mail with attachment (for example sale quotation), it seems to be impossible; logs say:
2014-11-17 12:39:27,246 1993 ERROR MundoMio openerp.addons.mail.mail_mail: failed sending mail.mail 8
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/mail/mail_mail.py", line 254, in send
['datas_fname', 'datas'])]
File "/usr/lib/python2.7/base64.py", line 73, in b64decode
return binascii.a2b_base64(s)
TypeError: must be string or buffer, not bool
Unfortunately my python knowledge is minimal, but it seem to me there is problem with handling mails with attachments. What may also shed some light, when I am browsing inbox -> archive, when trying to open any attachment shown in archive as sent, web page opens with message:
Not Found
The requested URL was not found on the server.
If you entered the URL manually please check your spelling and try again.
and relevant entries in log are:
2014-11-17 12:45:18,812 1993 WARNING MundoMio openerp.http: <function openerp.addons.mail.controllers.main.download_attachment> returns an invalid response type for an http request
2014-11-17 12:45:18,817 1993 INFO MundoMio werkzeug: 89.78.255.67 - - [17/Nov/2014 12:45:18] "GET /mail/download_attachment?model=mail.message&id=96&method=download_attachment&attachment_id=58 HTTP/1.1" 404 -
Did anyone faced similar problem? If so, what was solution?
regards
Tomasz