protected function MaillogTestCase::sendTestEmail in Maillog / Mail Developer 7
Send a test email.
Parameters
string $key: The drupal_mail() key used to identify which message is being sent.
array $params: Any additional parameters to process.
5 calls to MaillogTestCase::sendTestEmail()
- MaillogTestCase::testBodyXss in tests/
MaillogTestCase.test - Confirm that it is not possible to create XSS attacks via an email body.
- MaillogTestCase::testDeletePageSecurity in tests/
MaillogTestCase.test - Confirm that the 'delete' pages are not able to delete messages.
- MaillogTestCase::testLogging in tests/
MaillogTestCase.test - Tests logging mail with maillog module.
- MaillogTestCase::testLongSubject in tests/
MaillogTestCase.test - Confirm what happens with long subject lines.
- MaillogTestCase::testSubjectXss in tests/
MaillogTestCase.test - Confirm that it is not possible to create XSS attacks via an email subject.
File
- tests/
MaillogTestCase.test, line 338 - Unit-ish tests for the Maillog module.
Class
- MaillogTestCase
- All unit tests for the module.
Code
protected function sendTestEmail($key = 'maillog_basic_test', array $params = array()) {
$langcode = language_default('language');
$from_email = 'from_test@example.com';
$to_email = 'to_test@example.com';
drupal_mail('maillog_tests', $key, $to_email, $langcode, $params, $from_email);
}