Set up a bulk Email from Search Results

QuestionsSet up a bulk Email from Search Results
Ross Sabes asked 3 weeks ago


I am a PHP programmer but have limited experience with PHP Grid. I have a client whose database is build around PHP grid (FREE version). They would like to be able to send a bulk Email to clients based on the results of a filter in the grid. I am fairly adept at javascript and PHP. I know you can export the grid results. I also am reading the documentation on grid events. Is there some way via grid events or other API to work with the results in the grid? Can I get a more comprehensive example of how this might be achieved? I can manage the bulk Email part. I just want to understand how it may be possible to programmatically access the results of a search in the grid.

Thanks for looking.

3 Answers
Abu Ghufran Staff answered 3 weeks ago

A simple solution would be to follow ’email selected’ case of this demo:

Set event handler: line 132-133,
Email php code: 153-160
Create toolbar button: 218-227

This feature is supported in full version so i think your client need full version library. The free version is just for non-commercial / evaluation purpose.


Abu Ghufran - Dev Team
PHP Grid Framework
Ross answered 2 weeks ago

Thank you for the information. This example should be close to what I am looking to achive. I have one followup questions if you could answer: Can I access (and send an email) to all of the results at once instead of the paginated/selected set? I want the user to be able to send an email an every row returned regardless if it on the current page in view. Thanks

Abu Ghufran Staff answered 2 weeks ago

Yes, Refer line 230 and 161.

This demo updated all records with a value taken from JS prompt().
You can change it accordingly.

Abu Ghufran - Dev Team
PHP Grid Framework
Your Answer

4 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!