Hello,
I made a view with an inner join. When I add a record an email is sent. This works good.
The only problem is that not all field are showed in the mail. The field "naam2" in't showed up. This field is from the inner join table.
This is the code from the mail function:
function Email_Sending(&$Email, &$Args) {
//var_dump($Email);
//var_dump($Args);
//exit();
if (CurrentPageID() == "add") { // If Add page
$Email->Format="HTML";
$Email->Charset="ISO-8859-1";
$Email->Recipient = $Args["rsnew"]["naam1"]; // Change recipient to a field value in the new record
$Email->Subject = "Opgave"; // Change subject
$Email->Content = "\nBeste ".$Args["rsnew"]["naam2"].",<br><br>
Bedankt voor je opgave.<br>
Ik kom: ".$Args["rsnew"]["id2"]."<br>
Ik kom naam2: ".$Args["rsnew"]["naam2"]."<br>
Je opgegeven gegevens zijn als volgt:<br>
Graag ontvangen we 1 week voor de activiteit je betaling op bankrekening NL52 INGB 0000 6517 00 t.n.v. conferentiecontact Calvijn.<br><br>
Groeten en tot het aanstaande weekend,<br>
Jose van Duinen</body></html>";
}
return TRUE;
}