• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

invoking mailto: URL

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
not a problem - sorted it with cool bit of javascript!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic