The "E-mail to address:" line in Webform mail settings only allows 128 characters to be typed. In my case, that allows only 4 of my desired 8 recipients' email addresses to be entered (separated by commas, of course). I'm hoping it would be an easy fix to extend this (would it work to just change it to '#type' => 'textarea' instead of 'textfield' like it is now?), though the ideal solution would probably be to have one line with a "more" button that ajax-ily create a new line to enter a second address, and so on. I'd be happy with either solution!

Comments

quicksketch’s picture

Status: Active » Fixed

I've increased the size to 255 characters, which matches the database. Any more characters than that though and we'll need to increase the size stored in the database. If you need more characters than that, you might look into using conditional e-mail recipients instead (setup a hidden field with the user's e-mail address as the value, then use it as a conditional recipient).

It's unlikely that we'll change the field to a textarea, but an approach similar to your other suggestion is being worked on here: #277581: Send emails with a custom/templated body (and subject, to addresses and from addresses). Since we'll take care of that problem there, I'll mark this issue as fixed. If interested in multiple e-mails, please follow up on that issue rather than this one here.

quicksketch’s picture

Category: bug » feature
aaront’s picture

Great, thank you for the increase and suggestions!

Status: Fixed » Closed (fixed)

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