If you don't have a mail.css, and a stylesheet in the default page styles doesn't exist, you'll get a PHP error when sending a page. (For instance, the render/sifr module currently attempts to include a non-existent css.)

The fix for this is to add an @ before file_get_contents in theme_mimemail_message:

$output .= @file_get_contents($style);

A patch is attached.

Comments

jerdavis’s picture

Status: Needs review » Fixed

Addressed this with a file_exists() check when including each $style. Committed to HEAD in http://drupal.org/cvs?commit=141349

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Thomas_Zahreddin’s picture

Version: 7.x-1.x-dev » 5.x-1.0
Status: Closed (fixed) » Needs review
StatusFileSize
new1.45 KB

Hi,

i ran into the same issue.

Have you ever since march 2008 thought about a 5.x-1.1 Version of the module??

Old error are wasting peoples time.

patch is done against 5.x-1.0 Version of mimemail

Thomas_Zahreddin’s picture

Status: Needs review » Needs work

Very similar problem in /mimemail/theme/mimemail.theme.inc Version DRUPAL-6--1-0-ALPHA1 in Line 42/43 .

Thomas_Zahreddin’s picture

Version: 5.x-1.0 » 6.x-1.0-alpha1

Very similar problem in /mimemail/theme/mimemail.theme.inc Version DRUPAL-6--1-0-ALPHA1 in Line 42/43 .

sgabe’s picture

Status: Needs work » Needs review
StatusFileSize
new1.49 KB

Patch attached for the current 6.x-1.0-alpha1 release.

sgabe’s picture

StatusFileSize
new1.59 KB

Attaching a revised version of the patch.

There was a wrong parameter in the preg_replace() function. We can't use path_to_theme() and other similar magic here, because that will break this functionality when CSS optimizing is enabled on the site. This issue isn't addressed to solve the styling problem anyway.

sgabe’s picture

Version: 6.x-1.0-alpha1 » 7.x-1.x-dev
StatusFileSize
new1.56 KB

Attaching patch against current HEAD.

sgabe’s picture

Status: Needs review » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)

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