Hi Abu and community.
Is there a chance to send email to selected recipients ?
I have a grid with data like name, adress, email,…
What I like to do is to select some rows, and with additional button (like in the bulk demo bulk-edit.php) open my standard mail program and automaticly filled the recipient with the email column data. Is there a simple way or a demo for that ?
Email sending solution in php is doable.
Line 193 adds send email button,
Line 142 is place to write email sending code in php.
first thanks for this demo and explanation.
Now I have the following Java script implemented:
'caption' : 'Email',
'buttonicon' : 'ui-icon-pencil',
window.location.href = "mailto:[email protected]; [email protected]?";
My Question is now: How can I get the selected email adesses as Parameter
in the window.location.href function ?? like in my example.
In addition I have changed the code to:
Is it possible to loop all selected rows ?
// array of id's of the selected rows when multiselect options is true. Empty array if not selection
var selr = grid.jqGrid('getGridParam','selarrrow');
var t = '';
for (var x=0;x<selr.length;x++)
t += grid.jqGrid('getCell', selr[x], 'email_field')+";";
Replace email_field with the column name with emails.
var t will have concat ; string.
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!
Thanks for your feedback!