• 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

html email detect if Outlook or PDA  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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?
 
Sheriff
Posts: 23710
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 23710
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!