تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
16799 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 15
14193
14
مايو 24
234317
2
مارس 23
5944
1
مايو 22
2612
1
نوفمبر 17
7981