Author Topic: HTML email with HTML from server, HOW?  (Read 2478 times)

prepress forums

  • Posts: 24
    • View Profile
    • http://prepressforum.com
HTML email with HTML from server, HOW?
« on: July 28, 2007, 09:08:26 am »
OK, here's what I want to do.  I want to send email with the plain text, AND html version.  I prefer the HTML because:

I can get hits from that when viewed in the email client.  If I simply take an entire html page and paste it into that window, that content will not show a server hit, because it is embedded into that message.

If the content or body of it, is pulled from the server, I can have my (relevant) google ads in the message.  I have found that if I insert the javascript google ad into that body, it isn't on a server, the ads come up irrelevant to the content.

So, what I am attempting semi-successfully is to use a small amount of html in the window, pasted in.  That code has a javascript include that pulls the body from my webserver when that message is viewed.  This seems to work in one mail client but not another?  Sometimes comes up blank?  Sometimes looks great?

Is there a solid way to accomplish this?  Is it maybe my poorly crafted javascript, I'm no expert at that, just using snippets I found online in examples?  Please help...
--
JP

http://prepressforum.com - corvette-forum - http://free-preflight.com - http://printing-quote.us - http://destin-florida-hotel.com - Destin Florida Forum
corvette forum, corvette z06 forum, corvette c6 forum, c5 corvette forum, prepress forum, postcards, brochures, destin florida hotels

prepress forums

  • Posts: 24
    • View Profile
    • http://prepressforum.com
Has to be a method.
« Reply #1 on: July 28, 2007, 09:39:23 am »
I tried using a method of document write, but that sort of encodes the html being loaded and makes all the google ads irrelevant.  How can I email in html and have my google ads content specific?  There must be a way.  

php has a clean include method but if the file is in an email then can't run php.  This has to be a javascript solution.
--
JP

http://prepressforum.com - corvette-forum - http://free-preflight.com - http://printing-quote.us - http://destin-florida-hotel.com - Destin Florida Forum
corvette forum, corvette z06 forum, corvette c6 forum, c5 corvette forum, prepress forum, postcards, brochures, destin florida hotels

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
HTML email with HTML from server, HOW?
« Reply #2 on: July 28, 2007, 05:01:52 pm »
I do not think contextual Google ads can be shown in your email.  The way AdSense works is their adbot browses to the URL of the loaded page and scans it for keywords.  When opening an HTML message in your email client the adbot won't be able to browse to the source page to retrieve the content and target the ads.  You may want to look at Google ads for RSS feeds.  I haven't used them but I know they exist.  Perhaps they solve this problem.  A custom hack may violate the AdSense TOS. JavaScript is likely not fully supported in any email client...

Regards,
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting