HOW TO send email notification about new insertion?

Talk and info about common issues

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6171
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO send email notification about new insertion?

Postby administrator » Jun 30th, '11, 13:05

To send email about successful insertion use the following definition:
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));

Return to “ApPHP DataForm {HOW TO}”