error connection to outgoing mail

Asked by bousselmi

incoming mail test OK
outgoing mail get the following error.
       SMTP Server Error
       An error occurred : (10060, 'Operation timed out')

Using a gmail account
     server: smtp.gmail.com
     port: 587
     email: <email address hidden>
     password: mypassword

Running 5.0.6 on windows xp

Question information

Language:
English Edit question
Status:
Answered
For:
Power Email Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#1

Can u confirm if this problem still exists

Revision history for this message
bousselmi (as-bousselmi) said :
#2

Hi,

it's a problem of port,
when I use the port 587 for smtp.gmail.com, I have this message (SMTP server Error An error occurred:(10060, 'Operation timed out'))
And When I use the port 25 and I uncheck the box SSL, SMTP Test Connection Was Successful

Revision history for this message
bousselmi (as-bousselmi) said :
#3

Hi,

I used to configure an account outlook but I have an error when testing outgoing connection:
                   SMTP Server Login Error
                   An error occurred : (535, '5.7.0 Error: authentication failed: authentication failure')

I use windows XP and the latest version of poweremail

outgoing:
     * server: smtp.wanadoo.fr
     * port: 25
     *SSL: I test with SSL and without it but I have the same error
     * email Id: <email address hidden>
     * password: mypassword
     * user name: <email address hidden>
     * user: administrator
     * format: HTML otherwide text

incoming:
    * server: pop.domain.fr
    * port: 110
    * SSL: without SSL
    * user name: <email address hidden>
    * password: mypassword

I don't know what's the problem, please help me to resolve this problem

thx

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#4

It says authentication failed.
So it should be an authentication issue.

Can you try your username without the @xx part?

Revision history for this message
bousselmi (as-bousselmi) said :
#5

no, I have the same error

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#6

make sure there are no exptra spaces in the username or password

Revision history for this message
bousselmi (as-bousselmi) said :
#7

no extra spaces in the username and password

Revision history for this message
bousselmi (as-bousselmi) said :
#8

Hi,

about the error displayed in outgoing connection test:
             SMTP Server Login Error
             An error occurred : (535, '5.7.0 Error: authentication failed: authentication failure')

Is there a relationship between information on the SMTP server in the configuration file openerp server and data entries in order to accounts module poweremail

I have in the configuration file:
smtp_password = False
smtp_port = 25
smtp_server = smtp.wanadoo.fr
smtp_user = False
smtp_ssl = False

and information in order to accounts poweremail:
outgoing:
     * server: smtp.wanadoo.fr
     * port: 25
     *SSL: I test with SSL and without it but I have the same error
     * email Id: <email address hidden>
     * password: mypassword
     * user name: <email address hidden>
     * user: administrator
     * format: HTML otherwide text

incoming:
    * server: pop.domain.fr
    * port: 110
    * SSL: without SSL
    * user name: <email address hidden>
    * password: mypassword

please help me to resolve this problem
thx

Revision history for this message
bousselmi (as-bousselmi) said :
#9

I can't configure any account, gamil or outlook

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#10

@boussemi:

some things to try on python command line:

import smtplib
serv = smtplib.SMTP('smtp.gmail.com',587)
serv.ehlo()
serv.starttls()
serv.ehlo()
serv.login('username','password')

import imaplib
ser = imaplib.IMAP4_SSL('imap.gmail.com',993)
ser.login('username','password')

Please paste the result

Revision history for this message
bousselmi (as-bousselmi) said :
#11

I modifie in the function out_connection of poweremail_core.py?

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#12

Nope,

Just open python command line also called IDLE in M$ platforms and type in the commands one by one i sent you

Revision history for this message
bousselmi (as-bousselmi) said :
#13

I enter in command line this instruction:

import smtplib
>>> serv = smtplib.SMTP('smtp.gmail.com', 587)
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    serv = smtplib.SMTP('smtp.gmail.com', 587)
  File "C:\Python25\lib\smtplib.py", line 244, in __init__
    (code, msg) = self.connect(host, port)
  File "C:\Python25\lib\smtplib.py", line 310, in connect
    raise socket.error, msg
error: (10060, 'Operation timed out')

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#14

Ok,

That explains it.
Its your system issue or network issue which does not allow a connection to the server.
Not a poweremail issue

Revision history for this message
bousselmi (as-bousselmi) said :
#15

the problem is in smtplib.py

Revision history for this message
bousselmi (as-bousselmi) said :
#16

what can I do in this case?

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#17

I am not a windows expert.

I am extremely sorry that you are one of those less privileged members of the society still stuck on a Micro$oft Operating system

Cheers!
Sharoon

Revision history for this message
bousselmi (as-bousselmi) said :
#18

when I use an outlook account:

 import smtplib
>>> serv = smtplib.SMTP('smtp.wanadoo.fr', 25)
>>> serv.ehlo()
(250, 'mwinf2827.orange.fr\nPIPELINING\nSIZE 14365491\nETRN\nAUTH PLAIN LOGIN\nAUTH=PLAIN LOGIN\nENHANCEDSTATUSCODES\n8BITMIME')

this error has a relation with my system issue or network ?

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#19

please execute further statements and try logging into the system

Can you help with this problem?

Provide an answer of your own, or ask bousselmi for more information if necessary.

To post a message you must log in.