This topic is locked

Send personalied information to selected users in a list

12/14/2012 4:39:57 AM
PHPRunner General questions
N
netmedia59 author

Hello,
Is there a way to do this in PHPR 6.2 to send personalized information to selected users in a list

For example, I want to send them their username & password
global $dal;
//delete records

if(@$_POST["a"]=="delete")

return true;
//send emails
if(@$_POST["a"]=="email")

{

// send the email

$email=$deleted_values["Email"];

$subject="Sample subject";

$body = "ID: ".$deleted_values["ID"]."\r\n";

$body.= "Password: ".$deleted_values["Password"]."\r\n";

$arr = runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $body));

}

return false;
Add custom button as well:

<INPUT class=button onclick="var form = $('#frmAdmin1')[0]; form.a.value='email'; form.submit(); return false;" value="Email selected" type=button>
Thanks again
Olivier
PS : I have posted this years before and it was OK with PHPR 5

http://www.asprunner.com/forums/topic/14547-send-a-mail-to-selected-users-in-a-list/pagehlSend%20Mail%20Multiplefromsearch1

Sergey Kornilov admin 12/14/2012

Here is how you need to do this in PHPRunner 6.2:

http://xlinesoft.com/phprunner/docs/email_to_selected_users.htm

N
netmedia59 author 12/14/2012

Hey,
Thanks you for your help

I've already tried it doesn't fullfill my needs

It's OK to send the same information to selected users (a newsletter, ...)

But i can't use it (or don't know how to use it) to send personalized information (passwords, ...)

Thanks again
Olivier

Lille (FRANCE)

Sergey Kornilov admin 12/14/2012

Olivier,
you got it wrong. This example shows how to execute a query in OnServer event retrieving personal information of each selected user. This is exactly what you need.