hello,
in a table that is filled with chronoforms, ask users to enter their email address ... I would like to add a button that sends an email to the address indicated by user. I tried writing this code:
$a = $myRow-> email;
$subject = "test ok";
$message = "confirmed";
$headers = "From: [email]example@example.example[/email];
$ok = mail ($ to, $ subject, $ message, $ headers);
I have inserted this code under click of the button "EDIT" (because I do not know another place) but I send the message to all addresses found in the table, and not only that corresponding to the button.
Help me ...
in a table that is filled with chronoforms, ask users to enter their email address ... I would like to add a button that sends an email to the address indicated by user. I tried writing this code:
$a = $myRow-> email;
$subject = "test ok";
$message = "confirmed";
$headers = "From: [email]example@example.example[/email];
$ok = mail ($ to, $ subject, $ message, $ headers);
I have inserted this code under click of the button "EDIT" (because I do not know another place) but I send the message to all addresses found in the table, and not only that corresponding to the button.
Help me ...