2

I'm wondering, is it possible to use a Click To Print button in an email newsletter? Similar to the window.print() method, but I'm not sure if emails can contain javascript?

Justgrant2009
  • 603
  • 1
  • 8
  • 18
  • Emails should never contain javascript. It will get stripped and/or marked as spam by email clients. – John Jul 05 '13 at 14:46

2 Answers2

4

I don't think so, and if it is, it's not advised. I'm not sure if you tried Googling your question first, but check this out. Also, this. You could redirect them to a webpage containing the javascript. That might work.

Community
  • 1
  • 1
knorberg
  • 462
  • 5
  • 19
  • I did try googling it, but it was difficult to sort through results because the only wording I could think of made Google think I was looking for a way to print my email... Thank you for this advice though! I'm going to just put a link to a "Printer Friendly Version of the Email" and link that back to my site with the page there with trimmed down graphics and a print button there. Thank you Very Much for all your help! – Justgrant2009 Jul 05 '13 at 14:41
  • @Justgrant2009 Ahh, I see. And don't forget to accept answers as correct so that future people with the same question can find it easily. :) Good luck on your site! – knorberg Jul 05 '13 at 14:44
  • No worries, I'm waiting the minimum time limit to mark this one as correct! Thanks! – Justgrant2009 Jul 05 '13 at 14:45
  • @Justgrant2009 Anytime! Glad to help! :) – knorberg Jul 05 '13 at 14:46
0

not that I can think of.

Alternative: Do you have the newsletter duplicated on your site for those that might "click here if you can't see this email correctly"?

You could add a querystring to the URL (http://www.mysite.com/newsletter1.htm?print=yes) then check the URL in javascript and fire off the window.print if the querystring is there.

?

Jacques
  • 6,936
  • 8
  • 43
  • 102