This topic is locked

email forwarding

2/6/2012 1:09:03 PM
PHPRunner General questions
A
ant author

Can someone advise me how to remove the php tags in email forwarding.

I am using email forward in php runner to send a todo item as a reminder but the formatting is as per the editor, is there a way around this?

I would also like add a code in the email forward to do a lookup on a consultant_ID and send the particular todo item to that address.
Any ideas?
Example
Date : 2012-02-06 00:00:00

Priority :

Complete : 0

Task : <p>

new test</p>
consultant_ID : 1

A
ant author 2/6/2012

Thanks Cristian
Please can you help me where I need to insert the strip_tags()sting in the below example, I'm still relatively new with php and learning as I go along.
/** Send email with new data ****
$email="test@test.com";

$from="admin@test.com";

$msg="";

$subject="New data record";
foreach($values as $field=>$value)

{

if(!IsBinaryType(GetFieldType($field)))

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

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

if(!$ret["mailed"])

echo $ret["message"];

C
cgphp 2/6/2012
$email="test@test.com";

$from="admin@test.com";

$msg="";

$subject="New data record";
foreach($values as $field=>$value)

{

if(!IsBinaryType(GetFieldType($field)))

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

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

if(!$ret["mailed"])

echo $ret["message"];