I recently upgraded to Webform 7.x-4.15 and now I can't send an email to multiple comma-separated email recipients, I used to be able to before the upgrade. But after the upgrade only the first recipient in the list receives an email. If I recall correctly, I might have needed to patch the previous module version...

I do have "Send a single e-mail to all recipients" enabled... Did this feature break? Any ideas?

Comments

nebx created an issue. See original summary.

nebx’s picture

Version: 7.x-4.x-dev » 7.x-4.15
daiwik.addweb’s picture

I had also update webform module from 7.x-4.14 to 7.x-4.15. Tried to send an email to multiple comma-separated email recipients and it's working for me.

Can you please elaborate more.

liam morland’s picture

If you downgrade to 7.x-4.14 does it start to work again?

nebx’s picture

Thanks for the responses and for testing on your end. To elaborate... I upgraded from PHP 5.6 to PHP 7.0 and upgraded to Drupal 7.50 along with upgrading about 6 modules, Webform being one of them.

Is it possible that PHP 7.0 isn't compatible with Webform 7.x-4.15?

I'd have to wait until this coming weekend to downgrade. But, if that becomes the only option then i'm open to it.

liam morland’s picture

Issue tags: -webform

7.x-4.15 ought to be more compatible with PHP 7 than previous versions. There were PHP 7 compatibility issues resolved in 7.x-4.15.

I just tried sending to multiple recipients on both PHP 5.6 and PHP 7.0. Both worked with Webform 7.x-4.15, Drupal 7.54.

nebx’s picture

I was able to carve out some time to roll the module back on my development instance and it didn't seem to fix it. I also installed the dev branch of webform, 7.x-4.x-dev and it didn't help either.

Any other suggestions?

nebx’s picture

And by "rolled back" i mean that I downgraded to 7.x-4.14. :)

liam morland’s picture

Are you using any other Webform-related modules? If so, try disabling them then enable one at a time.

nebx’s picture

I have a very simple setup with few contrib modules. The only ones that are somewhat recent are CK Editor and Honeypot. I've disabled those two modules and it doesn't seem to help, I still can't send emails to multiple recipients, any more ideas?

liam morland’s picture

Does it work if you make a new Webform? Can you disable more of your other modules? You could try making a new site, see if it works, and gradually add modules and configure the site like the current one to see where it breaks. You could install the devel modle and add calls to dpm() to inspect the variables inside the part of Webform that sends email.

nebx’s picture

Today I was able to stand up a fresh vanilla install of Drupal 7.54 with:

Webform 7.x-4.15
Views 7.x-3.16
Token 7.x-1.7
SMTP Authentication Support 7.x-1.4, 7.x-1.6 & 7.x-2.x-dev - I tried all three...

I'm still having the same trouble unfortunately. I'll try the devel module dpm() suggestion and write back.

liam morland’s picture

What happens when you disable SMTP Authentication Support? That sounds like something that could cause this sort of problem.

nebx’s picture

With SMTP Authentication Support disabled I get the following errors:

* Unable to send e-mail. Contact the site administrator if the problem persists.
* No e-mails were able to be sent due to a server error.

Is there a way to send form submissions via email without the SMTP Authentication Support Module using Drupal Core? If so then I'd prefer it I think.

liam morland’s picture

It is possible that your server needs SMTP Authentication Support to work because mail() does not work on your server. I've never needed it, but it could be setup that way, perhaps for security reasons.

nebx’s picture

forgive me, i'm struggling to understand you a little, but are you possibly referring to amending my php.ini file like so:

https://www.drupal.org/node/179606#comment-276026

If that is what you mean then I think it'd be fine security wise and i'd be happy to try it and report back.

liam morland’s picture

Are you using a Windows server? You would only have to configure that on Windows.

nebx’s picture

Yes I am on a Windows server. I went ahead and added the SMTP Server address to my php.ini and it seems to have resolved my problem. The SMTP Authentication Support module appears to have been blocking the submission of multiple comma-delimited emails. It didn't prior to upgrading but it does now.

Liam, I am very thankful for your help in leading me to the fix, I can't express that enough seriously, thank you. :)

liam morland’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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