MyBB Community Forums
Query string for multiple recipients in private.php - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Development (https://community.mybb.com/forum-68.html)
+---- Thread: Query string for multiple recipients in private.php (/thread-137171.html)



Query string for multiple recipients in private.php - Dannymh - 2013-04-04

Hi All,

I am writing a Tipping comp plugin for my site, well re-writing from Joomla. In doing this I want to add a feature where the tipping comp admin can send a PM to all members of the tipping comp. Rather than re-invent the wheel and rewrite a page that already exists I was wondering whether I could simply do the following

http://site/private.php?uid=1

(this works, however what I want to do is something like)

http://site/private.php?uid=1,5,60,18

etc so it will then put all those users into the list, or better still put them into the BCC list

Is this at all possible or am I better off just adding a form and that puts all this in place and then sends submits the data to private.php?


RE: Query string for multiple recipients in private.php - .m. - 2013-04-04

using mass mail from admin panel appears to be a simple solution !


RE: Query string for multiple recipients in private.php - frostschutz - 2013-04-04

try
private.php?action=send&preview=1&bcc=1,2,3,4,5&subject=I want to...&message=...play a game



RE: Query string for multiple recipients in private.php - .m. - 2013-04-04

^ Thank you. for the bcc part it appears that we need to add user names (not user IDs)


RE: Query string for multiple recipients in private.php - Dannymh - 2013-04-05

Awesome. Only a few admins will have access to the part that generates this but that is just perfect Smile

Dan