• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Help me to run my first JavaMail app

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same result.
 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
    Bookmark Topic Watch Topic
  • New Topic