githinji84
Member
Guys,
I am using list col update plugin and its working well except for one issue. When I put php code and include element placeholders in the email message body and select "eval" some element place holders are not being evaluated and I get the message "Message body empty" instead of the email body.
I am using this simple code to test:
$invoice_approved ={invoice_central___invoice_approved};
return $invoice_approved;
So this particular code does not send the email but returns an error message "Message body empty". There are a few elements in my list where this code is working but others don't.
Whats even more weird is that this element place holder works perfect if I don't use php and "eval" i.e. just type {invoice_central___invoice_approved} in the email message field
Long story short. All element placeholders are working well when I don't use eval and some work and some fail when I use eval.
Has anyone come across this?
Regards
Simon
I am using list col update plugin and its working well except for one issue. When I put php code and include element placeholders in the email message body and select "eval" some element place holders are not being evaluated and I get the message "Message body empty" instead of the email body.
I am using this simple code to test:
$invoice_approved ={invoice_central___invoice_approved};
return $invoice_approved;
So this particular code does not send the email but returns an error message "Message body empty". There are a few elements in my list where this code is working but others don't.
Whats even more weird is that this element place holder works perfect if I don't use php and "eval" i.e. just type {invoice_central___invoice_approved} in the email message field
Long story short. All element placeholders are working well when I don't use eval and some work and some fail when I use eval.
Has anyone come across this?
Regards
Simon