Hi,

The parameters to drupal_mail() have changed. I tried writing a patch that would do this, but couldn't come up with a rule that would reliably detect it - there's the same number of compulsory params and I don't see any way of determining the usage of the one variable name throughout. Perhaps you could check that the first param matches "$module" or the actual module name, but I didn't know how to do that. See Drupal 5.x to 6.x Mail changes for more details.

Cheers,
Stella

Comments

douggreen’s picture

Try looking at only the second argument -- if it's $to or if it's a string that has an @ sign in it...

To do the string checking, you'll need to set '#source' => 'all'

stella’s picture

That could work. I'll also check for $recipient, which is the variable used in most of the examples. It won't match every case, but hopefully the majority. Will write up a patch for this shortly.

Cheers,
Stella

stella’s picture

Status: Active » Fixed

Fixed and checked into CVS.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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