From ad84363810fa5cd1a72b54d7cb1658571183d01e Mon Sep 17 00:00:00 2001 From: Kyle Kaminski Date: Thu, 17 Jul 2014 16:03:41 -0500 Subject: drupal_mail test --- drupal_mail_test.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 drupal_mail_test.php (limited to 'drupal_mail_test.php') diff --git a/drupal_mail_test.php b/drupal_mail_test.php new file mode 100644 index 0000000..8c9725f --- /dev/null +++ b/drupal_mail_test.php @@ -0,0 +1,26 @@ + $my_module . '_' . $my_mail_token, + 'to' => $to, + 'subject' => 'test', + 'body' => 'test', + 'headers' => array( + 'From' => $from, + 'Sender' => $from, + 'Return-Path' => $from, + ), + ); + $system = drupal_mail_system('no_module', $my_mail_token); + if ($system->mail($message)) { + dpm('ok'); + } + else { + dpm('error'); + } + +?> \ No newline at end of file -- cgit v1.2.3