This topic is locked

email functions with different options

2/23/2011 1:01:42 PM
PHPRunner General questions
swant author

I have a basic form that there are 5 fields. 3 are check boxes. It is for tracking. I want to be able to when check box A is checked it will email to group A. Then if check box B is checked it emails group B. I dont want group A to receive an email if group B is checked. I know this will be achieved in the after record updated section. However i cannot find how to tie in the different fields to the separate function.
Any advice would be great.
thanks

Sergey Kornilov admin 2/23/2011

You'll need to to have three conditional sections in your event that check corresponding check box value and send n email if check box is set.

if ()

{

...

}

if ()

{

...

}

if ()

{

...

}
swant author 2/23/2011

sorry im not very good at php so if i go to add action and choose send simple email do i do it like this
if (checkbox a)

{

// ** Send simple email ****

$email="test@test.com";

$from="admin@test.com";

$msg="Hello there\nBest regards";

$subject="Sample subject";

$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];

}

if (checkbox B )

{

// ** Send simple email ****

$email="test@test.com";

$from="admin@test.com";

$msg="Hello there\nBest regards";

$subject="Sample subject";

$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];

}



You'll need to to have three conditional sections in your event that check corresponding check box value and send n email if check box is set.

if ()

{

...

}

if ()

{

...

}

if ()

{

...

}


Sergey Kornilov admin 2/23/2011

If you have a valid support contract post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
We'll be glad to assist you with the rest.

swant author 2/24/2011

I have uploaded without adding any email



If you have a valid support contract post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.
We'll be glad to assist you with the rest.

Sergey Kornilov admin 2/24/2011

Make sure you open ticket at http://support.xlinesoft.com sending your Demo Account URL.