Preparations
- open /index.php file for editing
- replace the $application->Run(); line with this code (replace e-mails with different working e-mails you can access):
$application->emailUser( 'TEST.EMAIL', null, array( 'to_email' => 'email-one@dev-domain', 'use_custom_design' => 1, 'message' => '', ) ); $application->emailUser( 'TEST.EMAIL', null, array( 'to_email' => 'email-two@dev-domain', 'use_custom_design' => 1, 'message' => 'non-empty', ) );
- save changes
- login to the Admin Console
- go to the Website & Content → E-mail Templates section
- create a new e-mail template with this data:
- Template Name: TEST.EMAIL
- Subject: Empty email
- HTML Version: <inp2:m_Param name="message"/>
Test Plan
- visit the /index.php file from the Web Browser to trigger the e-mail sending code
- login to the Admin Console
- go to the User Management → Mailings section
- press the Process Queue toolbar button on the Email Queue tab
- confirm (in your e-mail client), that:
- e-mail to the email-one@dev-domain e-mail wasn't sent
- e-mail to the email-two@dev-domain e-mail was sent and it was the only recipient of that e-mail