6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1201] maximum number of recipients
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ . ..__..__ _/ [__)|\ || || \ ./__.[__)| \||__\|__/
Comment
> i had a case were i wanted to restrict the maximum number of > recipients so as to stop spammers abusing my webmail accounts. I > wanted to restrict the total number of TO, CC and BCC recipients as > spammers were adding thousands to teh BCC field and hitting send. > > > > my solution may not be refined, but it works. > > > > in compose.php in the SEND_MESSAGE case right after $recips is > defined and addresses assigned I added the following code > > > > if (substr_count($recips,",") + substr_count($recips,";") + > substr_count(ereg_replace(" "," ",$recips)," ") > 21) { > > $get_sig = false; > > Horde::raiseMessage(_("For security reasons you can not send > an email to more than 22 persons at once. If you need to sent to more > than 22 persons, please create a second email."), HORDE_ERROR); > > break; > > } > > > > this may be useful, and the variable 22 could be added to conf. > > > > Thanks.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers