Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
16809 Lượt xem

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.
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
14193
14
thg 5 24
234337
2
thg 3 23
5949
1
thg 5 22
2615
1
thg 11 17
7990