Hello guys, i am using this funtion on a custom php file to sent email to user but nothing happens, could someone check if code it is ok? Thanks
<?php
function Email_Sending($email, &$args) {
//var_dump($email, $args);
//exit();
$email->Recipient = $args["rsnew"]["Email"]; // Change recipient to a field value in the new record
$email->Subject = "My New Subject"; // Change subject
$email->Content .= "\nAdded by " . CurrentUserName(); // Append additional content
return TRUE;
}
?>