Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
16915 มุมมอง

Hello! I'm fighting with email sending via smtp. My email provider needs per user authentification for outgoing emails.

Error log:

File "/opt/openerp/server/openerp/addons/base/ir/ir_mail_server.py", line 463, in send_email
    smtp.sendmail(smtp_from, smtp_to_list, message.as_string())

and server answer:

SMTPSenderRefused: 553
5.7.1 Sender address rejected: not owned by auth user.
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

I create small module, which allows to use different smtp settings for users: https://github.com/bamps/smtp-per-user

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

@Leonid, you are the man ! Thanks for your code

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Are you obligated to use that SMTP provider? If not, just use Google! It's free and probably about as reliable as you can get.

This video shows you the set up procedure, step by step : SMTP setup so as to invite UID/PWD users

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
14278
14
พ.ค. 24
234773
2
มี.ค. 23
6097
1
พ.ค. 22
2792
All Mail Sent as admin@domain.com แก้ไขแล้ว
1
พ.ย. 17
8155