跳至內容
選單
此問題已被標幟
3 回覆
7168 瀏覽次數

I created Email template and one Custom Email button to send the mail alert to the customer while clicking on the button .

  • My issue : is while clicking the Button I got odoo warning: 
    Sender email is missing or empty after template rendering. Specify one to deliver your message

頭像
捨棄

Check whether you configured outgoing mail server and specified sender in mail template ?

最佳答案

Most of the time we need to send an email after successfully completion of some tasks or event. I have a complete code which sends email on button click.To send an email in odoo first of all we need create email template. We can create this email template using following two ways.

Read more how to send email on button click:

http://learnopenerp.blogspot.com/2017/08/odoo-how-to-send-email-on-button-click.html

頭像
捨棄
最佳答案

This error means that a user, from who, you are sending a message, lacks e-mail address. You should do one of the followings:

  1. Send a message from any standard user which for sure has an email address. Let say, 'admin@yourcompany.com' using sudo().message_post

  2. Add a try whether a user has a proper email address in your funciton, and if no raise popup to enter this data

頭像
捨棄