• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Help me to run my first JavaMail app

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all.
this is my first day in JavaMail.
I want to send an email from [email protected] to [email protected] 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The same result.
 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic