Also, you have to define in EmailNotificationSettings():
- email address "From" (must be based on your domain name)
- email address "To"
- email message
- whether to send insertion data or not
Code: Select all
## *** set email notification about successful insertion
$dform->AllowEmailNotification(true);
## *** define email notification settings
$dform->EmailNotificationSettings(array("email_from"=>"", "email_to"=>"", "subject"=>"", "message"=>"", "inserted_data"=>false));