From 7e4ef115281801ccef806c94cc212d6dba3a5052 Mon Sep 17 00:00:00 2001
From: Jon Duell <jon@jonduell.com>
Date: Mon, 17 Dec 2012 09:33:36 -0800
Subject: [PATCH] Allows smtp module to be used for sending html emails

---
 webform.module | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/webform.module b/webform.module
index 973fd65..923ff78 100644
--- a/webform.module
+++ b/webform.module
@@ -3881,6 +3881,9 @@ function webform_email_html_capable() {
       return TRUE;
     }
   }
+  else if (module_exists('smtp') && variable_get('smtp_allowhtml', 0)) {
+    return TRUE;
+  }
   else {
     return FALSE;
   }
-- 
1.8.0.2

