reset password
Author Message
jrodriguez
Posts: 33
Posted 00:15 May 16, 2013 |

Hi professor,
For the homework 5 when we send the email do we use localhost or any other mail server such has gmail.com?  I am trying to use the localhost and I am getting 

 

 

DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
 

javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;

 

Or does it mean that I need to have a mail server installed?

 

Last edited by jrodriguez at 00:17 May 16, 2013.
cysun
Posts: 2935
Posted 08:32 May 16, 2013 |

You can set up an email server on your computer as described here, or use GMail SMTP as described here.