New to Xataface and excited about its potential. I'm working through the "Getting Started" guide. I've run into a problem at 'triggers'.
The following code in ...//FacultyOfWidgetry/tables/Course/Course.php never sends the email however the response code is always set and displays on the screen. (Email address changed for obvious reasons).
--
class tables_Course {
function afterInsert(&$record){
$response =& Dataface_Application::getResponse();
if ( mail('xxx@yyy.com', 'SubjectLine', 'MessageBody') ){
$response['--msg'] .= "\nEmail sent to xxx@yyy.com.";
} else {
$response['--msg'] .= "\nMail could not be sent at this time.";
}
}
}
?>
--
I read the forum and checked that my php is set up properly. I tested
with the following script sent via the command line & it worked fine.
--
<php>
--
I'm not sure what's going on. I took the mail line out of the condition and tried running it by itself -- still no email sent.
Any tips appreciated.