This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Help me to run my first JavaMail app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Help me to run my first JavaMail app" Watch "Help me to run my first JavaMail app" New topic
Author

Help me to run my first JavaMail app

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey all.
this is my first day in JavaMail.
I want to send an email from johntodd@lycos.com to johntodd@yahoo.ca address.
I have the following class :

connecting to the internet and running the application, I got :

note : I am behind a proxy, so any special configuration here ?
thanks for help.

[ September 20, 2004: Message edited by: John Todd ]
[ September 20, 2004: Message edited by: John Todd ]
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
try this and see if there is any difference:



Obviously substiture PROXY_SERVER_IPADDRESS and PROXY_SERVER_PORT for your proxy ip and port.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

The same result.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Mine problem is similar to yours. My code is a little different but does the same thing. The servlet worked successfully. But the message was not sent.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


note : I am behind a proxy, so any special configuration here ?

Well you need to be sure that your proxy supports SMTP, which would be unusual.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help me to run my first JavaMail app
 
Similar Threads
SocketException with JavaMail
First Problem with JavaMail, help please
excveption in mail api please help
Help me please, JavaMail
Not able to run JavaMail class