Within Lotus Notes, when an email is opened I receive the error: "A JavaScript Error was encountered while loading a page. Error on line 11: ReferenceError: Drupal is not defined"

I have disabled sending the logo within the email, other than that all settings are default. I don't see why javascript is being sent with the email. Lotus notes is notorious for terribly rendering items so I have no problem editing a particular file if the javascript is necessary but a nuisance in my niche email client market. Help appreciated

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

Javascript is being sent with the e-mail because the original page includes it and the sent e-mail includes the full content of the original page (including the scripts).

If you don't want scripts in any output version of the module, simply delete the scripts line in print.tpl.php.

If you just want to disable javascript in the email, copy the print.tpl.php to print_mail.tpl.php and delete the same line in the new file..

João

ryan.nauman’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Ah didn't see print.tpl.php there, removed that line and it works great. Thanks