Send Email-- How to make it work in other machines.
in
Integration and Hardware
•
4 months ago
Hello there!!
I made a program using javaMail, and it works just fine in my machine...
When i try to run the program in other machines the program send me this error:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25;nested exception is:java.net.ConnectException: Connection refused: connectat com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227)at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)at javax.mail.Service.connect(Service.java:258)at javax.mail.Service.connect(Service.java:137)at javax.mail.Service.connect(Service.java:86)at javax.mail.Transport.send0(Transport.java:150)at javax.mail.Transport.send(Transport.java:80)at FeiraDoEmpreendedor.Prosseguir(FeiraDoEmpreendedor.java:1417)at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at controlP5.ControlBroadcaster.invokeMethod(Unknown Source)at controlP5.ControlBroadcaster.callTarget(Unknown Source)at controlP5.ControlBroadcaster.broadcast(Unknown Source)at controlP5.Controller.broadcast(Unknown Source)at controlP5.Button.setValue(Unknown Source)at controlP5.Button.activate(Unknown Source)at controlP5.Button.mouseReleased(Unknown Source)at controlP5.Controller.setMousePressed(Unknown Source)at controlP5.ControllerGroup.setMousePressed(Unknown Source)at controlP5.ControlWindow.mouseReleasedEvent(Unknown Source)at controlP5.ControlWindow.mouseEvent(Unknown Source)at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:597)at processing.core.PApplet$RegisteredMethods.handle(Unknown Source)at processing.core.PApplet.handleMouseEvent(Unknown Source)at processing.core.PApplet.dequeueMouseEvents(Unknown Source)at processing.core.PApplet.handleDraw(Unknown Source)at processing.core.PApplet.run(Unknown Source)at java.lang.Thread.run(Thread.java:662)
I used " export application " and it does not work....
1