*Odoo的邮件跟踪功能是做的非常好的, 可以通过系统邮件,当客户回复邮件之后,系统会自动将邮件内容作为消息与原有记录进行对应。 很多初学者,发送邮件时常常遇到如下错误。 * 邮件投递失败 通过SMTP发送邮件失败 'None'. SMTPSenderRefused: 501 mail from address must be same as authorization user bounce+12-sale.order-6@odooqs.com * * *为什么发送地址会变为"* bounce+12-sale.order-6@odooqs.com"呢? 我们来分析源代码,参见ir_mail_server.py中send_mail 方法: smtp_from = message[ 'Return-Path' ] or self ._get_default_bounce_address() or message[ 'From' ] assert smtp_from, "The Return-Path or From header is required for any outbound email"...