Hi,

I'm using print and email link for content made only by cck field.

Print version is OK; on the contrary, email is produced with no content (only title), as you can see in the attached image.

Comments

jcnventura’s picture

Status: Active » Closed (duplicate)

Although not completely a duplicate, the root cause is the same as the one for #333046: Filters not applied when sending an e-mail.

oscarelloo’s picture

Version: 5.x-4.0 » 6.x-1.x-dev

Same problem here, but with the latest 6.x dev-version. Emails contains only Message, Title and Footer. No content. I read in the other thread you mentioned that the issue was fixed in all the dev-versions. Am I doing something wrong or does this function not work at all right now?

I'm using Drupal 6.6. and the latest Print dev-build.

Thanks!

/ Oscar

jcnventura’s picture

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

Hi,

It does work (and in my tests perfectly since October 22). Does the HTML printer-friendly page output the contents of the node correctly?

João

oscarelloo’s picture

Hi

Yes, the HTML printer-friendly page looks perfect! I tried the module on a different site, and that worked just fine. The difference between the two is that I'm using only CCK fields on the website that doesn't work. On the site that do work, I only use the Body field. So I guess that there is an issue between CCK-fields and the Email function?

jcnventura’s picture

After the October 22 patch, the contents of the e-mail and the HTML version should be exactly the same (there was a bug that prevented the code from working as designed in the e-mail version that was fixed at that time).

I can't imagine why the output would be different between those two versions in current versions of the code, so please just delete the whole print folder, re-download and re-install everything, and I have 99% confidence that that will fix your problem.

João

alex72rm’s picture

I've now installed the latest dev version for 5.x Drupal branch.

Print version: OK
email version... mostly unreadable.

I've attached the two versions.

Alessandro

jcnventura’s picture

Are you using the mimemail module?

João

alex72rm’s picture

Yes. Is it a problem?

Alessandro

jcnventura’s picture

There is a known problem with mimemail and this module.. The mails created by this module are already MIME, and mimemail falls on its a** trying to re-MIME it.

So, try to disable mimemail and check if it that doesn't solve the problem.. Also I would appreciate if you could send me a copy of the test to the e-mail address which I have just sent to you in a PM (IE is altering the HTML while saving it to disk, so I would prefer the original).

Thanks,

João Ventura

alex72rm’s picture

StatusFileSize
new19.45 KB

Ok, I have re-installed the latest -dev version of print module.

If I disable the mime mail option, all the output is right (as for print version).

My question is now on others modules that use that mime mail option flagged (simplenews?).

Another one: As you wrote, the email is already MIME... maybe it should be better to hand this function by mimemail module (when installed). What do you think about?

Alessandro

jcnventura’s picture

Hi,

I am planning to use mimemail for some more advanced features of that module. I will detect if the mimemail module exists and use these features, if not I will use the current code. Your suggestion, however means:

1. I have to modify the print_mail module to reduce it's capability to non-MIME to make it compatible with mimemail.
2. The new print_mail module would require the installation of mimemail, while the current one doesn't.

The above doesn't make sense at all. The solution would be for the mimemail module author to fix its module to not mess up the output when the incoming mail is already valid MIME. The issue has already been reported (it's #327709: Filtering system causing problems with upstream modules).

João

alex72rm’s picture

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

Yes... a funny problem (which module should decide?)

Anyway, this issue is solved then can be closed.

Many thanks for your support (always very quick)

Alessandro

amortiz’s picture

StatusFileSize
new209.98 KB
new201.58 KB

Same issue here, only mimemail isn't installed on my build. I'm using Drupal 6 and the corresponding version of the print module, but no go. I'm attaching pictures of the same post, first printed then emailed. Any ideas?

jcnventura’s picture

Status: Closed (fixed) » 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

Status: Fixed » Closed (fixed)

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