email plugin custom template

hi,
I am using email plugin and i have 2 problems:
1 I created a custom template (I tried with html page and with php page ), but the email always arrives as a text format
2 The email should contain the form data modified by the user. I set it to send the email to "change" but how can I insert in the body of only the changed fields?
 

Attachments

  • Cattura1.PNG
    Cattura1.PNG
    29.9 KB · Views: 37
Thank you for the reply.
I tried to modify the php template of the email, but it's as if it does not work. The email is always sent as plain text.
where am I wrong?
 

Attachments

  • Cattura3.PNG
    Cattura3.PNG
    40.3 KB · Views: 32
The problem is solved .... I had to add the {template} placeholder in the text box.
But I'm having difficulty in comparing the old and new values. which is the right syntax?
PHP:
foreach ($this->data as $key => $val)
{

   echo '<tr><td><b>' . $key . '</b></td><td>';
   if(($origData[0]->tablename___elementname)!=$this->data['tablename___elementname']);
   echo $origData[0]->tablename___elementname . ' has been updated to ' . $this->data['tablename___elementname'];
   echo "</td></tr>";

}
 
Not sure if the origData contains raw data (so compare with tablename____elementname_raw)
Do
var_dump($origData,$this->data);
to see exactly the structures.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top