• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

sending email in servlet

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating a GWT application and trying to send email using a servlet but it gives me an exception here is my code

Can any please help me with this.

Regards and Thanks in Advance.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

but it gives me an exception



I will never in a million years understand why people do this

WHY don't you show the exception

The Java exception mechanism is designed to communicate lots of information about the cause and location of the problem.

Bill
 
Jinal P Shah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the webpage please look for yourself the exception coming webpage.
 
Sheriff
Posts: 67266
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a helpful hint: if you aren't going to put in at least a little effort to try and get an answer, why should people like William bother to use their volunteer time to help you?
 
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're trying to send from a GMail user while not using GMail*. The exception says the sender is unauthorized. Apparently either GMail or your local server doesn't like the From address. Try using GMail's own SMTP server; there are many threads about it, and I believe even an FAQ entry.

* well, that's what I'm actually assuming. The lack of any explicit SMTP host makes me think the local host is used.
 
Jinal P Shah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer Rob. I'll definitely look into it.

Bear Bibeault I totally agree with you and surely what you are telling me is correct but since I was not getting it so I wanted to ask you guys just to show me the direction. Surely you guy are doing a great job. Thanks anyways.


Regards
Jinal
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!