HELP! I'm trying to send mass mail to all my users; i do this with the old version (5.x-1.5) of Mass Contact and it worked , but with this new (5.x-2.1) version only Admin received the mail. I've tried with a lot of test-users, different domains for email, and different settings for the "Accept newsletter" option in the user profiles - checked, non-checked: the result is the same: the mails dont be received.
Also, the "BBC" sendind seems to not-work: checked or non-checked, i can read in the mail headers of the mail that i've recived as Admin ALL address of my registered users (but none of their have received mail from my site :( )
Any help?

Comments

oadaeh’s picture

You might try upgrading to the 5.x-2.2 version. Although I did not experience the problems you are having, the 5.x-2.1 code was not complete, and there may have been problems when upgrading from 5.x-1.5. See my explanations here and here.

Also, I'm have not seen the behavior you are claiming for BCC, in any of the 5.x-2.x versions, and I did test that feature explicitly.

neopoet’s picture

I also have the no-bbc problem. I am running this on Drupal 5.1

cmadsen’s picture

Version: 5.x-2.1 » 5.x-2.2

Thank you oadaeh for updating the module. I've updated to 5.x-2.2, but am still experiencing the problem of only one user receiving a mass contact email. One user from the role does receive email, but the others don't. When I send it, the message returned has the complete email addresses and everything appears to be fine. When I check the error log, there is an error, but there's no details to know what is the problem. I'm running Drupal 5.1.

oadaeh’s picture

I spent well over an hour this afternoon trying to recreate this behavior and could not. (I did find and fix another bug, though.) Would you please send me a screen shot of your settings and the form used to send the e-mails (right before clicking on the send button), so that I can see which settings you have set? Maybe then I can see what the problem is.

oadaeh’s picture

I believe the problems everyone is having are related to using the Mass Contact module along with the SMTP Authentication Support module.

There seems to be two things that are being caused by it. First, there is an extra "<" being added to the e-mail address, so that it becomes invalid and never gets sent (only the admin gets it, if BCC is set, or the first address if not). Second, it is treating the To field as a single address and only sending to the first recipient (when it doesn't fail completely). I still haven't seen the BCC recipients being converted to To recipients problem manifest itself, so maybe there's another module that's causing that.

I ran out of time yesterday while going through all this (it took several hours to figure it all out), so I didn't get an opportunity to actually do any fixing, but I will try to get to that in the next few days. In the mean time, if you can configure your site to send mail w/o the SMTP Authentication Support module, the Mass Contact module should work fine. If you do not have the SMTP Authentication Support module installed, let me know what other e-mail related modules you do have installed, and I'll investigate potential toxic interaction with them.

adamd’s picture

Yeah, im having the same issue stemming from the SMTP Auth Module, i dont have a choice because my network blocks the smtp port so i need to use it,

If you could get this working with it i would be greatly appreciative!

oadaeh’s picture

I've determined that these problems are being caused by the SMTP Authentication Support module.

* It never calls the function to add recipients to the BCC field. It only calls the one to add the recipients to the To field. So, all recipients who are sent as BCC get sent as To, instead.
* It doesn't handle sending e-mail to more than one recipient
* It adds an extra < to the beginning of the e-mail address that invalidates it.

I can easily take care of the last two, and I already have code in place on my development system that does. I will be looking into seeing if there is a way to fix the BCC problem, but at least part of that fix will most likely be by patching the SMTP module.

BTW, with the code the way it is, I can't imagine it ever worked with the 5.x-1.5 version, either. In fact, to see if that was the case, I installed that version of Mass Contact on my test system, along with smtp.module, and had the same problems. It's possible something changed in the SMTP module in the last few months that caused these problems to show up.

oadaeh’s picture

Okay, for those of you having these problems and using the SMTP module, I've submitted a change to CVS that I believe will fix your problems. There are two caveats, though. First, it doesn't address the BCC issue, and second, it fixes the single e-mail issue by sending to everyone in the recipient list one address at a time. So, if you're sending BCC'd e-mails to 1000 people, you're going to get 1000 copies of your own message. I don't really consider this a permanent fix, but I'd like to see if this does fix your problems, so would you please download and test the 5.x-2.x release [1] and then let me know if it fixed it for you or not. Thank you for your patience and understanding.

[1] http://drupal.org/node/160686

adamd’s picture

That fixed it for me. Thanks! I know its not a perm fix but it helps alot.

oadaeh’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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