This topic is locked
[SOLVED]

 Sending specific fields by eMail

11/25/2013 3:53:59 PM
PHPRunner General questions
Z
Zaboor author

Hello,
I use this code forsending all data fields by eMail
How can I send specific fields (for example: Full_Name, Status) only?



$email=$_SESSION["Email"];

$from="test@test.com";

$msg="";

$subject="Profile Updated";
foreach($values as $field=>$value)

{

if(!IsBinaryType($pageObject->pSet->getFieldType($field)))

$msg.= Label($field)." : ".$value."\r\n";

}



$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'htmlbody' => $msg, 'charset' => 'UTF-8'));

if(!$ret["mailed"])

echo $ret["message"];
return true;


Thanks

Sergey Kornilov admin 11/25/2013

Take a look at this code sample for instance:

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

Z
Zaboor author 11/26/2013



Take a look at this code sample for instance:

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


Thanks Dear Sergey