reset password
Author Message
Vanquish39
Posts: 134
Posted 03:46 Jun 02, 2011 |

Can you please post the code for today's file upload/email lecture.  Thanks.  I'm getting this cannot connect to port 25 for the email example.  If I run the code on the cs3 server it works, but not on my own.  Do I need Apache James or something?

Last edited by Vanquish39 at 04:36 Jun 02, 2011.
cysun
Posts: 2935
Posted 09:28 Jun 02, 2011 |
Vanquish39 wrote:

Can you please post the code for today's file upload/email lecture.  Thanks.

Done.

I'm getting this cannot connect to port 25 for the email example.  If I run the code on the cs3 server it works, but not on my own.  Do I need Apache James or something?

You'll need an SMTP server. You can either install one on your own computer (see here for instructions), or use an existing one (e.g. GMail). Depending on the email server setup, you may need to do more in the code to connect to the server - see the JavaMail FAQ on Accessing GMail for example.

Last edited by cysun at 09:29 Jun 02, 2011.