Getting this error with pm_email_notify module (7.x-1.1 version) with empty "From" field in module settings (#1040150: 'Invalid address' error when from email address is left blank). is_null check isn't enough to prevent passing empty string to preg_match(). Fixed with patch.

CommentFileSizeAuthor
mimemail.inc-empty.patch727 bytesInternetDevels
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgabe’s picture

Title: Notice: Undefined offset: 0 in mimemail_headers() (line 51 of /path/sites/all/modules/mimemail/mimemail.inc). » Check for not just NULL but empty From address
Category: task » bug
Status: Patch (to be ported) » Fixed

Thank you, committed on both branches.

Status: Fixed » Closed (fixed)

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

cimo75’s picture

Hi i have the same problem with both dev and, the patch can t be applied since the code has changed.
This is pretty urgent since I can t send newsletter with simplenews.
tx
Simone