Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added test script for testing sending an email.

  • Loading branch information...
commit 35757ade0f5045b3a3be674117d60e2c9e99e8b6 1 parent 0a9efdf
@KyleAMathews KyleAMathews authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 testing/testing_mailer_integration.php
View
13 testing/testing_mailer_integration.php
@@ -0,0 +1,13 @@
+<?php
+$path_ogm = drupal_get_path('module', 'og_mailinglist');
+require_once($path_ogm . "/og_mailinglist_transport.inc");
+$raw_email = file_get_contents($path_ogm . "/testing/applemail");
+$email['original_email_text'] = $raw_email;
+
+// import an email
+$email = _og_mailinglist_parse_email($email);
+//print_r($email);
+
+// create a new one
+$node = node_load(103);
+_og_mailinglist_email_node_email($email, $node);
Please sign in to comment.
Something went wrong with that request. Please try again.