Hi,

I tried to install MailQ on a drupal5 system where smtp was already installed and configured.
After activating the module an error shows up:
Fatal error: Cannot redeclare drupal_mail_wrapper() (previously declared in [...]/htdocs/sites/all/modules/smtp/smtp.module:161) in [...]/htdocs/sites/test.[...]/modules/mailq/mailq.module on line 458
Now I can't deactivate either mailQ nor smtp because all that is rendered and shown up is the error message above. In this case it is just a test instance of a working site, but bad enough, I now have to throw away all recent changes and restart with a cpoy of the working one.

Are there any possibilities in getting those two modules working together?
Or is there functionality duplicated in those modules?
As far as I can see, smtp only uses an external smtp-server for delivering mails (instead of the builtin smtp-functions from php), while MailQ stores outgoing mail in the database and delivers (via the configured delivering way of drupal) this mail with the next cron-run. Is that right? If so, there should not be any contradictory functions in those two modules.

Thanks a lot
XL

Comments

x-lette’s picture

OK, as first workaround in mailq.module line 458 I renamed function drupal_mail_wrapper to drupal_mail_wrapper1.
The site now works again and I can configure MailQ as well as smtp but I really don't know if the module is now doing anything at all.

zyxware’s picture

We have resumed support for this module but only for Drupal 6. Are you still using D5 and the D5 version of the module? If not, then perhaps you should try out the D6 version of the module.

x-lette’s picture

Woow, that was a long time ago. As far as I can see, this site is still at D5 and using the described combination. But it's a very low traffic site (in fact, no traffic at all within the last year) so I don't care about it anymore.

Nevertheless: thanks for reply ;)

zyxware’s picture

Status: Active » Fixed

x-lette - Thanks for getting back. I am marking this issue as fixed.

Status: Fixed » Closed (fixed)

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

maartendeblock’s picture

Version: 5.x-1.x-dev » 6.x-1.0-beta2

This is still a problem in the D6 version