This question has been flagged
13 Replies
22958 Views

Everything is in the title. 

When i try to send a quotation to a client, the email doesn't go out.

When I try to setup smtp email , I get an error when I test the connection. And yes, all the information are proper both for mail server adress, username, password and port.

Pleae help.

PS: I am on vps at digital ocean.

Avatar
Discard

first allow less secure apps from your google account and then test the email configuration

For incoming mail server:

smtp server:smtp.gmail.com

port:465

connection security:ssl/tls

Best Answer

Hi!!!

I have the same problem, i 'm using odoo docker... in my develop image have IP equal 148.204.1.10 (LAN), 

my configuration smpt : ok

legend in spanish "¡Prueba de conexión satisfactoria! Todo parece estar bien establecido!"

But when i try tu send a quote.

DONT SEND ANYTHING

i tried to read the log, but dont show anything.

What happen, what is the solution?

Note:

my local access is http://148.204.1.10:8069/

Avatar
Discard

I found the solution...

1. put you odoo in develop mode.

2. goto Settings ‣ Technical ‣ Email ‣ Templates

3. Open the first template

4. Edit and choose advance configuration

5. select "outgoing email server": <your configuration smpt>

6. Save the template

7. repeat for all templates.

Good luck.

Best Answer

Dear chris,

            please mention your connection detailes for more info. And try to paste the error here or upload a screenshot.

            if you are using smtp server with gmail,

            the below detailes can be of help

            port:465
            smtp server : smtp.gmail.com
            connection security: SSL/TLS

               and make sure you have entered the correct login and password.

              Also try setting up the mail after loging in to the browser.

               and for gmail , you have to enable less secure apps in order to use odoo.

            To enable less secure apps

                    you can use this link:

                        https://myaccount.google.com/lesssecureapps?pli=1

Avatar
Discard
Best Answer

I am having a similar problem with odoo version 12. It tells me connection lost anytime I try to send a quotation.

My smtp server is setup. It tells me everything is successful but still not sending emails.

Avatar
Discard
Best Answer

DigitalOcean is known to block email ports such as 25, 587, 465 etc by default on most droplets. Please first make sure that you can connect to your SMTP service by doing:

telnet smtp.gmail.com 25

What do you get in response?

Further, I would recommend you use a transactional SMTP / Mail service to send emails out from Odoo, instead of gmail. Mandrill has a free plan that you can use.

Avatar
Discard
Best Answer

Obviously you are not able to setup your SMTP account properly. However, you should not use the Gmail default SMTP server anyway, but the G-Suite relay SMTP server instead for obvious reasons. Please read Odony's answer here:

https://github.com/odoo/odoo/issues/21119

and Google's instructions here:

https://support.google.com/a/answer/2956491?hl=en

and follow the deployment instructions of Odoo here:

https://www.odoo.com/documentation/user/11.0/discuss/email_servers.html


Avatar
Discard
Author Best Answer

@rishan I tried already. Didn't work better.

Connection Test Failed! Here is what we got instead:
534
5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=somecoderhere> Please log in via your web browser and
5.7.14 then try again.
5.7.14 Learn more at

5.7.14 https://support.google.com/mail/answer/78754 q8-v6sm3808909wmb.3 - gsmtphen I try to connect with the Test connect with Gmail here is what I get: .


Here is current configuration I have on odoo 

localhost1
Connection Information
smtp.gmail.com465


Security and Authentication
SSL/TLS
my_user_name@gmail.com
passwordhere


my alias domain in the general settings is setup with my own domain name


I am on Odoo 10 CE. 

I don't even see where is the parameter for changing cron task frequency.

Google Account is set as accepting unsecure apps


Avatar
Discard

When you tried with Gmail have you added Odoo API to trusted on google? I have noticed recently that whenever Odoo tried to send an email I got a notification from Gmail that "Not secure app tried to log to your email"

Author

no, where to do this ?

Author

How to do this ?

Author

I have tried the telnet command requested by @Jeremy and here is the result:

Trying 66.102.1.109...

Connected to gmail-smtp-msa.l.google.com.

Escape character is '^]'.

220 smtp.gmail.com ESMTP o8-v6sm37143825wro.68 - gsmtp

Best Answer

Sign into google.

Goto google apps. (top right)

Select Account.

sign in and security->apps with account access.

Scroll down and turn on

Allow less secure apps...

That should do the thing......

Avatar
Discard
Best Answer

first try with the gmail account using google smtp configuration. 

Avatar
Discard