Hello Viewers! I stumbled onto a few more people making requests along the same lines, none with answers, so I wanted to present a simple method to produce customized certificates, using either Flash or HTML5, without the added expense of a LMS.
What you need:
- PHP Enabled Webserver
- SMTP Server (Private or Public: Google, etc)
- PHPMailer
- InternalServerReporting.php (Comes with Adobe Captivate)
For Captivate:
- Enable reporting for the Quiz
- Select “Internal Server”
- Fill out the server address (https://www.example.com/dev/InternalServerReporting.php)
- Fill out the Company, Department, and Course
- Publish the project to the web server and test
For the Server:
- Copy/Install ‘PHPMailer’ in the www directory
To enable Email reporting
- Grab ‘A Simple Example’ from https://github.com/PHPMailer/PHPMailer
- Paste the code example at the bottom of InternalServerReporting.php
- Modify the code to point to your SMTP server, credentials, port, and include your new variables. For a quick proof of concept, use the following line: $mail->Body = "Your Adobe Captivate Department is equal to: " . $DepartmentName . ".";
Note: You will need to parse $Filedata to get quiz results, answers, custom variables, etc. There are many ways to parse in PHP, so I will skip over this step.
So each time a user hits ‘Post Results’ and results are recorded, it will trigger InternalServerReporting.php which in turn will execute the code to send an email.
My email response looks like this:
Note: All variables in the below example are custom from parsing $Filedata.
($ClassName)
($StudentName)
($CompanyName) confirms that the above named participated in the training session and successfully passed the final exam.
Date: ($Date)
Score: ($Score)
The training included the following topics: ($CourseMetaData)