1

I am writing an HTML Email Code. One of the components in the Email Page is the Print Button. But, As we know the Email Clients blocks the javascript and hence I cannot use window.print(); I read through lots of posts to understand that javascript can nowhere be made to work in email clients??

Is there an alternative that I could use like simulating Ctrl+P without using Javascript??

4
  • @Adriani6 it is not duplicate. Read the question again and also Quentin's answer. Commented Aug 14, 2018 at 13:28
  • Also consider that browser-based email clients generally display the email inside their own interface with menus, buttons etc around it, so relying on a basic window.print() isn't good. Press ctrl+p in gmail and it looks awful. Commented Aug 14, 2018 at 13:28
  • @VicJordan "... since email clients don't generally support javascript. You can have a button/text link to an external page that is a copy of the email and change the <body> tag to this" Looks exactly like what OP is asking. Commented Aug 14, 2018 at 13:32
  • In worst case if you need to let them download pdf file, you can make it and include as attachment and send with message.... Commented Aug 14, 2018 at 13:51

1 Answer 1

2

The sender of an email cannot do anything to make the recipient's computer print it.

If the recipient wants to print it, then their email client will supply user interface that will allow them to.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.