--- C:/Dokumente und Einstellungen/bjacob/Desktop/forward/forward/forward.module	Wed Mar 11 18:48:54 2009
+++ C:/Dokumente und Einstellungen/bjacob/Desktop/forward/forward.module	Tue Mar 17 21:43:22 2009
@@ -233,6 +233,13 @@
     '#rows' => 10,
     '#description' => t('Email message body.  The sender\'s name will appear in place of !name in the message body.  The web site name will be inserted in place of !site.  The sender will be able to add their own message after this.'),
   );
+  $form['forward_page_defaults']['forward_emailformat'] = array(
+    '#type' => 'select',
+    '#title' => t('Forward Message Email Format'),
+    '#default_value' => variable_get('forward_emailformat', 'html'),
+    '#options' => array('HTML' => 'html', 'plain text' => 'plain'),
+    '#description' => t('Select the email format.'),
+  );
 
   // Forward Form Default Values
   $form['forward_epostcard_defaults'] = array(
@@ -656,7 +663,7 @@
 
   $from = $edit['yemail'];
   $headers['MIME-Version'] = '1.0';
-  $headers['Content-Type'] = 'text/html; charset=utf-8';
+  $headers['Content-Type'] = 'text/'.variable_get('forward_emailformat', 'html').'; charset=utf-8';
 
   $recipients = trim($edit['recipients']);
   $recipients = str_replace(array("\r\n", "\n", "\r"), ',', $recipients);
