Created
May 17, 2017 14:56
-
-
Save ilyasProgrammer/1509f8ce9c7b31b132ec551c753a9abc to your computer and use it in GitHub Desktop.
Odoo send email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Send mail sans queue | |
ir_mail_server = self.pool.get('ir.mail_server') | |
msg = ir_mail_server.build_email("[email protected]", ["[email protected]"], "My subject", "my message") | |
ir_mail_server.send_email(cr, uid, msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment