• 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

html email detect if Outlook or PDA

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'd like to detect if a html email that I am sending (via Java) is being viewed in a PDA or in Outlook. My goal is to send one html email. If the email is viewed in Outlook display 10 columns. If the html email is being viewed in a PDA I would suppress 5 of the columns. Is there any way to do this?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it's not you that's going to detect that, right? (You said "I'd like to detect...") So you have to ask yourself what is going to do the detecting. The only possibilities are the e-mail message and the HTML in it.
 
Dave Meyers
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you know of any ways for the email message or html to detect how it is being viewed or other tricks to solve this problem?
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not aware of any HTML elements which work differently based on the container which is displaying them. And I wouldn't expect to find any either, since HTML isn't that kind of language. Normally, as I expect you know, that sort of thing is done with Javascript and CSS, but e-mail clients wouldn't normally execute Javascript and they might not bother with CSS either. Of course you could experiment with those things but I wouldn't expect them to do what you want.

If it were me I would just e-mail a link to an HTML document with suitable Javascript or CSS, and pass the responsibility to the browser.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic