Javamail does not send email

Asked

Viewed 59 times

1

I was developing an e-mail page. Sent legal, but even not giving error in the page it does not send more. I followed this tutorial here. It only works on the server, but on the local machine, it no longer sends: Someone’s been through it?

Transport.send(message);
  • Check proxy and firewall

  • interesting that sent. Here I do not use proxy

  • which exception I add to the firewall?

  • What mistake are you making?

  • No mistake. When you get to this line of Transport.send(message) it stops. Nothing else happens

  • tried to disable IPV6, e.g.: -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true

  • no. This code I implement where?

  • eu coloquei um debug e ele mostra isso:
 
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: useEhlo true, useAuth true
SMTP DEBUG: trying to connect to host "smtp.gmail.com", port 465, isSSL false

  • by what it looks like, seems to be the antivirus that is blocking. But I’m still trying to figure out how to release on antivirus

Show 4 more comments

1 answer

0

I got!

It was the antivirus that was not allowing sending: I went to the antivirus and disabled only the smtp function and finally sent again. I had this idea when I saw this link

Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.