I looked for answers and I apologize if this issue has already been discussed. The emails that are sent out include some page code and all CSS from the page that is being sent. Example below. Also in the bottom is "node_access entries for nodes shown on this page" which I'd prefer wasn't included. How do you prevent this from happening?
Thanks.

--------------------------------
Drupal.extend({ settings: { "jstools": { "cleanurls": true, "basePath": "/" }, "tabs": { "slide": false, "fade": false, "speed": "slow", "auto_height": false }, "thickbox": { "close": "Close", "next": "Next \x3e", "prev": "\x3c Prev", "esc_key": "or Esc Key", "next_close": "Next / Close on last", "image_count": "Image !current of !total" }, "base_path": "/" } });
$(function(){
$('a[@rel$="external"]')
.click(function(){this.target = "_blank";
});
});var BASE_URL = "/";$(document).ready(function(){ $('.img, .pngfix').pngFix(); });

.dev-query, .dev-timer, .dev-memory-usage {
padding-top: 2em;
}/* $Id: poll.css,v 1.2 2006/10/02 16:16:06 dries Exp $ */

.poll .bar {
height: .8em;
margin-top: 1px;
margin-right: 0pt;
margin-bottom: 0px;
margin-left: 0pt;
border-width: thin;
border-style:solid;
border-color: #996600;
background-color: #eae6d9;
width:78%;
}

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using the mimemail module?

If so, can you disable it and try sending the email?

João

fuquam’s picture

Thanks. I think I need mimemail for the "simplenews" and "webform" modules?

mdowsett’s picture

I have this same issue with this module. I disabled mimemail and tried to send an email of a page and got an absolutely blank email this time.

I also sent an HTM formatted invite that was working prior to disabling the mimemail module and that also came thru as a blank email.

fuquam’s picture

Yeah I don't think this part of the module works at all but especially with mimemail and you need that for other modules. The Send module works just fine so I'm sticking with that and disabling the email and PDF parts of the Print module.

jcnventura’s picture

Title: code, CSS and node entries showing up on emails » Conflict with mimemail module: CSS shows up in the received e-mail

This part of the module works. I can guarantee that to you. My personal site is running version Drupal 5.15 with print 5.x-4.1, and the code is identical to 6.x-1.1 (venturas.org, just select any page and send it by e-mail).

I am setting the headers to MIME in this module, and it seems that the mimemail module has problems with that. I know the module works fine if you don't have mimemail installed, and I would expect that mimemail would not screw it up by making the CSS show up... This issue has been reported 3 months ago to the mimemail maintainer, but he seems not to care (#327709: Filtering system causing problems with upstream modules).

There's nothing I can do except to recommend that users disable that module.

I am curious though, how are you going to use the send module in Drupal 6? There's no official release except a prototype port in the CVS. I would rather recommend the use of the Forward module, which at least seems to be progressing towards a stable release.

João

jerome72’s picture

Status: Postponed (maintainer needs more info) » Fixed

I, too, had the problem of blank emails. You don't only have to deactivate the mimemail module, but you also must delete the mimemail directory. Then you can receive clean emails...

Very odd, but it worked for me...

jcnventura’s picture

Status: Fixed » Postponed (maintainer needs more info)

I don't want this to close automatically in two weeks... Not until I write some kind of code/documentation to warn users that the mimemail module is incompatible with this module.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Fixed

I discovered the source of the problem: the input filters of the Mime Mail module. If you set the filter to 'PHP code', the mail goes through cleanly.

I have added a warning message to Drupal's status report warning the user of the problem when the conflicting settings are set and advising the user to change them to a 'good' setting.

João

mdowsett’s picture

I set it to PHP (and only had the PHP evaluator enabled) and it didn't send the CSS code....so progress!

It still sent a lot of ugly stuff tho...:
- the compressed JS file as an attachment (I have JS aggregation turned on in performance)
- the favicon as an attachment (no huge deal)
- stripped out the clickable URLs, but the [1] 'footnotes' and put a summary of the URLS at the bottom. (not a big issue)
- the site's logo (in the theme) was at the top of the email (but not the rest of the site's header)
- I have a bunch of images in the footer that are inline....it was sent in the email as a block

...so I guess my only question is....how can I theme in the site's header (or a different image) and the footer?

If I copy the print.tpl.php file into my theme's folder, will that also adjust what gets emailed out (not only for printing part of this module's feature)?

thx so much for listening to my ramblings here.

mdowsett’s picture

I got adventurous and tried it....I resolved all my above issues with adjusting the print.tpl.php file...even the favicon, footnotes, header (just added an Only local images are allowed. tag), the .js file

I'm proud! :)

sgdev’s picture

@jcnventura: Am I correct to assume you are using version 5.x-1.x-dev (or 6.x-1.x-dev) of Mimemail? Only this version seems to have the input filter option. I'm not sure this is a realistic choice for most developers ... Mimemail 5.x-1.x-dev and 6.x-1.x-dev are quite buggy.

jcnventura’s picture

Status: Fixed » Active

No, I have moved over to Drupal 6 and I'm using version 6.x-1.x-dev... Which is the only one available for Drupal 6.

I will try to take a look at Drupal 5 with 5.x-1.0 and see if that can be fixed by properly configuring mimemail, or if uninstalling it is still the only option.

João

jcnventura’s picture

Status: Active » Fixed

The latest dev version of the mimemail module no longer filters the contents of the mails created by this module, so the warning is now removed from the code.

I will reply to the Drupal 5 problems in #370602: Send by e-mail status report message incorrect.

João

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kenorb’s picture