dcsimg
smtp conection to mailenable free mail server problem
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   tronantonio
Posted On:   Wednesday, June 20, 2012 09:57 AM

Hello, sorry, my english is very bad. I am trying to programming a simple java client that uses smtp protocol to send an email through a mailenable server. I am using javamail api 1.4.5 and JDK 7 and Eclipse. I can connect to this mailenable server in my house, my work and where i want using webmail.xxxx.org, in fact i can read  and send mails from my android device using same mailenable server. This is the debug list: DEBUG: setDebug: JavaMail version 1.4.5 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc] DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "mail.my_ma   More>>
Hello, sorry, my english is very bad.

I am trying to programming a simple java client that uses smtp protocol to send an email through a mailenable server.
I am using javamail api 1.4.5 and JDK 7 and Eclipse.
I can connect to this mailenable server in my house, my work and where i want using webmail.xxxx.org, in fact i can read  and send mails from my android device using same mailenable server.

This is the debug list:


DEBUG: setDebug: JavaMail version 1.4.5
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "mail.my_mailenable_free_mail_server.org", port 25, isSSL false
220 interweb-consulting.net ESMTP MailEnable Service, Version: 0-5.52- ready at 06/20/12 18:06:38
DEBUG SMTP: connected to host "mail.my_mailenable_free_mail_server.org", port: 25

EHLO 192.168.1.53
250-interweb-consulting.net [90.XXX.XXX.XXX], this server offers 4 extensions
250-AUTH LOGIN
250-SIZE 52428800
250-HELP
250 AUTH=LOGIN
DEBUG SMTP: Found extension "AUTH", arg "LOGIN"
DEBUG SMTP: Found extension "SIZE", arg "52428800"
DEBUG SMTP: Found extension "HELP", arg ""
DEBUG SMTP: Found extension "AUTH=LOGIN", arg ""
DEBUG SMTP: Attempt to authenticate
DEBUG SMTP: check mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM 
DEBUG SMTP: AUTH LOGIN command trace suppressed
DEBUG SMTP: AUTH LOGIN succeeded
DEBUG SMTP: use8bit false
MAIL FROM:<email@my_mailenable_free_mail_server.org>
250 Requested mail action okay, completed
RCPT TO:<micuenta@gmail.com>
250 Requested mail action okay, completed
DEBUG SMTP: Verified Addresses
DEBUG SMTP:  micuenta@gmail.com
DATA
250 Requested mail action okay, completed
DEBUG SMTP: got response code 250, with response: 250 Requested mail action okay, completed

RSET
250 Requested mail action okay, completed
DEBUG SMTP: MessagingException while sending
com.sun.mail.smtp.SMTPSendFailedException: 250 Requested mail action okay, completed

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2114)
at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1887)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1121)
at Mailer.sendMail(Mailer.java:83)
at Mailer.<init>(Mailer.java:26)
at Inicio.<init>(Inicio.java:27)
at Principal.main(Principal.java:9)

What's wrong?

If i try the same with smtp.gmail.com it works, but with command STARTTLS.

Thanks.
Cuando no se sabe qué decir, mejor callado. Y yo ahora no sé que escribir.    <<Less

Re: smtp conection to mailenable free mail server problem

Posted By:   tronantonio  
Posted On:   Wednesday, June 20, 2012 11:27 AM

respond to myself.
I just find the solution. I have AVG free that proccess emails. I have deactivated it and my program works.
Cuando no se sabe qué decir, mejor callado. Y yo ahora no sé que escribir.
About | Sitemap | Contact