Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoking mailto: URL

 
Rob Loft
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using a choice box in my html page - each choice should pop-up the users default email and set a new message to the specified account.
i have named my SELECT form choicebox. i use the ServletRequest getParameter() to retrieve the selected value - then i use SerletResponse sendRedirect(String url) to redirect to the mail client - ie mailto:joe@blogs.com
but nothing happens - any ideas pls?
 
karl koch
Ranch Hand
Posts: 388
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i cant offer you a clean explanation why i doesnt work. but what about a dirty workaround :-) ?
y
ou could send a redirect to some page which opens the eMail link by JavaScript. you can pass the eMail address as parameter or create the page as a JSP ??!!
have fun..
karl
 
Rob Loft
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chrs - do you have any tips on the javascript side as i am very new to it? how would i pop up the clients default mail on their screen?
 
Rob Loft
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not a problem - sorted it with cool bit of javascript!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic