Hi,
I’m trying sending emails to users when they properly enter some new data.
Actually i’m using this :
{exp:channel:entries channel="Fiche" author_id="CURRENT_USER" }
<?php
$subject = "bla";
$message = "bla";
$this->EE->load->library('email');
$this->EE->email->wordwrap = true;
$this->EE->email->debug = true;
$this->EE->email->mailtype = 'html';
//envoi au client
$this->EE->email->from('[email protected]');
$this->EE->email->to("{mail}");
$this->EE->email->subject($subject);
$this->EE->email->message($message);
$this->EE->email->Send();
?>
{/exp:channel:entries}it works if i use :
$this->EE->email->to("[email protected]");it doesn’t with :
$this->EE->email->to("{mail}");My variable is well retrieved and i can ‘echo’ it.
Switching php mode between ‘output/input’ doesn’t solve my probleme either.