After installing both the release and dev versions of this module, I received the above error. Probably because I have another module which also declares this function.

For now, I have hacked the core mail.inc file to serve the same purpose, but this is obviously the wrong approach. It would be MUCH better if the core mail functions took this into consideration, but failing that, this module needs to play nice with others.

Thanks.

Comments

budda’s picture

Status: Active » Patch (to be ported)

Fixed in 5.x release by doing a function_exists() wrapper around the drupal_mail_wrapper()

budda’s picture

Status: Patch (to be ported) » Needs review

Fixed in 5.x and 6.x dev builds by doing a function_exists() wrapper around the drupal_mail_wrapper()

AlanT’s picture

I don't see the patch, and the 6.x dev build looks to be more than a few days old.

Where can I find the code for this?

damienmckenna’s picture

Status: Needs review » Needs work

It should also write a Watchdog message if this function is found elsewhere. On one site I found it in simpletest.mail.inc (part of the Simpletest module) and devel.module, so all was fine when they were both disabled.

modctek’s picture

This error is occurring with the new http://www.drupal.org/project/mailsystem module.

avpaderno’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

I am closing this issue, as it has been created for a version that isn't supported anymore and the project doesn't have versions for any supported Drupal version (actually Drupal 7, Drupal 8, and Drupal 9).