This topic is locked

Email selected users

9/10/2009 8:53:45 PM
PHPRunner General questions
author

Hello,
Here is what I'm trying to do:
I have a table with the following:

Name

Email

Group
I do a search on a group..I select all the users that come up on the search. Then I click a send email button and send the email to the selected users.
I would really like it to go to a form page where I could fill in the subject and message before sending...is this possible?
If not..I would like to open an email client and send it that way. I have read on the forum but can't get my head wrapped around it.
Thanks in advance!!
Jim

Sergey Kornilov admin 9/10/2009

A couple of links that can help you get started:

http://www.xlinesoft.com/phprunner/docs/email_selected_records.htm

http://www.xlinesoft.com/phprunner/docs/send_email_to_email_addresses_from_user_table.htm
You still need to find a way to enter subject and email text. This can be either popup or two fields right on the page that probably should stay hidden until button is clicked.

S
swanside 9/13/2009

I am trying something similar.

I have a table called account with Engineer_Note and email as fields in it.

I have a table called jobs with PDAAllocation field in it.
When a job is created, it is assigned to a user by the PDAAllocation. This selects a person from the accounts table on the Engineer_Note.
What I want to do is send an email to this person.
So, what will happen, is, A job gets logged, a person is selected. When the job is saved it will send an email saying 'Please update your PDA'
Jane was helping me on this, and I tried this code, but it does not send any email out?
Can you help on this please?

Thanks

Paul.

global $dal;

$rs = $dal->account->Query("Engineer_Note='".$values["Engineer_Note"]."'","");

$data = db_fetch_array($rs);

echo $data["email"];

if ($data["email"])

{

$email = $data["email"];

$message="Please Update Your PDA";

$subject="Please Update Your PDA";

mail($email, $subject, $message);

}

J
Jane 9/14/2009

Hi,
I recommend you to publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.