Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending E-Mail through an Applet

 
Vijayan Pandalai
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I have been trying to send an E-Mail through an applet for quite sometime now but haven't been quite successful. I have downloaded and tested quite a bit of code but none of them have worked successfully. I have been getting an "Unable to connect to host exception". Using the same code as an application however, the mail is sent successfully. Where am i going wrong? What is the solution? I am working on an urgent project, any solution at the earliest would be highly appreciated.
Thanks is advance
regards
vijayan.
 
Praveen Singh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
An applet can never connect to a machine other than from which it is loaded.So in your case while sending the mail, it tres to connect to the mail host, and gives the exception. I suggest you to send the request to servlet through your appplet and your servlet should send the email to the mail host.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic