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

Currently I am trying to develop a online registration event with email confirmation function by using odoo16 and gmail smtp. The connection test shows that it has connects successfully, the action count has also been increased but nothing has been received throw email. Am I missing anything in setting?

I am already set up like this:

  • @google.com
  • Authenticate with username
  • Encryption: SSL/ TLS
  • smtp server: smtp.gmail.com
  • smtp port: 465
  • username: own gmail account
  • password: own app password


الصورة الرمزية
إهمال
أفضل إجابة

Hi  summer intern,

Activate Developer Mode and Goto Settings > Technical > Emails to check whether the email failed to be sent. If it failed, you can find the reason for the failure there.


الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Thank a lot! Seem all of the email have been trapped in the state of "outgoing", all the email has been sent after clicking the "send now" button. But instead of clicking that button, is there any method to send the email automatically?

الصورة الرمزية
إهمال

No need to click on the "Send Now" Button.
There is a scheduler named 'Mail: Email Queue Manager' that runs every hour and sends emails. You can change the interval of the scheduled action or use the context 'force_send=True' with the email template to send the email instantly.

Example:

template_id = rec.env.ref('module_name.email_template_id')
template_id.sudo().send_mail(rec.id, force_send=True)

أفضل إجابة

Hi, 

You can follow the following link for gmail SMTP outgoing mail server in Odoo:

https://youtu.be/bx8JXli-Y6A

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
953
5
مايو 25
18378
0
أبريل 25
1185
1
أبريل 25
1624
0
مارس 25
1462