/    Sign up×
Community /Pin to ProfileBookmark

Printing an HTML Email

Hi, I send out an html newsletter. It contains pagebreaks and whatnot and I want to be able to print this newsletter in the same fashion as the window.print() function where they click on the button and it brings up the print function to print the document. I also have the document stored on my web server, so it can be accessed. I dont want the email message to print with the to:/cc:/subject: etc in it, basically just as the document itself.

Any and all help appreciated thanks!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@CrazyMerlinDec 10.2005 — simply send the text that you want to a new window, and call the print function on that window

use the window.open() function with no arguments, but have it return it's object to a variable (i.e myWin = window.open())

then write output to this window (whatever you like)

and call the print function on that window
Copy linkTweet thisAlerts:
@zanna5910authorDec 13.2005 — I am having problems with javascript or any script and emailing it out. You cant do that. It has to be a straight html message, link outside of the site and somehow call a print function on that file.
×

Success!

Help @zanna5910 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...