I get the following error message when I attempt to send a mass contact:

cid = "1"
1 errors encountered sending message. Please check the logs and try again.

I checked the logs and I don't seen anything.

Comments

oadaeh’s picture

That 'cid = "1"' line is a mistake. I put that in for debugging, and forgot to take it out before release. I will be looking at the other part in the next few days.

oadaeh’s picture

1 errors encountered sending message. Please check the logs and try again.

That error is from the SMTP Auth module. There's a patch or two for modifying the output that module produces. Maybe that will help solve the problem.

Stephen Rockwell’s picture

does that mean smtp auth module necessary for mass contact?

oadaeh’s picture

No, the SMTP Auth. module is NOT needed in order for the Mass Contact module to work. In fact, the more I deal with the SMTP Auth. module, the more likely I am to say you should NOT use it. I realize some people need it because of their hosting situation and don't need Mass Contact in the same way. However, SMTP Auth. has several bugs and no one is taking care of them.

Stephen Rockwell’s picture

ok...i'm not using the smtp auth module so i'm wondering why that's not working.

s

oadaeh’s picture

Okay. My mistake. I assumed because of the error that you were using the SMTP Auth. module.

It's really odd that you are getting that message and you have nothing in /admin/logs/watchdog. There should be something there to give a clue as to what is going wrong. Basically, that part of the code is simply retrieving a pass/fail condition from Drupal and reporting that state. Any error message will actually be coming from Drupal.

Can you successfully send a message using the core Contact module?

Stephen Rockwell’s picture

yes contact works just fine.

kriskd’s picture

I'm getting the same error when I try to send to all authenticated users, but when I try to send it to a smaller group of users defined by a role, it works just fine. It makes me think that there must be something wrong with one of my users preventing the message from going to all authenticated users. Any idea what I might try looking for? Or is there a limit as to how many users you can send an e-mail to via mass mail? I have 117 registered users.

Dave Nichols’s picture

Version: 5.x-2.4-beta » 5.x-2.x-dev

I'm getting the same message. On digging around in mass_contact.module I discovered 2 problems:
1 - the parameters to the implode() function seem to be reversed (e.g in line 912).
2 - in the to addresses, the text between < and > is being stripped out, so user <user@domain.com> becomes just user.
I don't know enough about PHP or Drupal to know where that is happenning, but if the lines of the form $recipient_temp[] = $rnamea ." <". $rmaila .">"; are changed to just $recipient_temp[] = $rmaila; et al, it all works fine.

oadaeh’s picture

@Dave Nichols: the implode function is correct. See http://us.php.net/manual/en/function.implode.php for details.

@all: I've committed the change of recipients' e-mail addresses from $rnamea ." <". $rmaila .">" to $rmaila to the head of the 2.x branch. I'll cut a new release as soon as I fix a couple of other bugs. Sorry it took so long.

@Stephen Rockwell: please let me know if your original issue is now fixed.

oadaeh’s picture

Is this problem still happening? If so, check out my reply to another person with similar problem here: http://drupal.org/node/279616#comment-913254. Go through the suggestions there and see if anything there fixes it.

oadaeh’s picture

Status: Active » Fixed

Closing due to lack of response.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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