diff -r 9414cec2a059 forward.module
--- a/forward.module	Wed Mar 09 16:35:39 2011 +0100
+++ b/forward.module	Wed Mar 09 17:22:56 2011 +0100
@@ -203,7 +203,15 @@
     '#maxlength' => 40,
     '#description' => t('If left blank, the from address entered in the form will be used as the from address for the email.  Enter a valid email address here to override that.  The sender\'s email will still appear in the body of the message.'),
   );
-  
+  $form['forward_options']['forward_recipient_address'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Recipient address (optional)'),
+    '#default_value' => variable_get('forward_recipient_address', ''),
+    '#size' => 40,
+    '#maxlength' => 40,
+    '#description' => t('Left this field blank for the default behavior of that module. If you enter a recipient address here, the form does not provide a recipient field anymore. Instead this fixed address is used if a page is forwared. You can use this feature to provide a simple feature like \'Please contact me abous this page/product\'. Maybe you can enter the address of your sales representative here.'),
+  );
+   
   $types = node_get_types();
   $options = array();
   $defaults = array();
@@ -538,6 +546,8 @@
     '#maxlength' => 256,
     '#required' => TRUE,
   );
+  // if recipient is not set, we need textfield
+  if (variable_get('forward_recipient_address', '') =='') {
   $form['message']['recipients'] = array(
     '#type' => 'textarea',
     '#title' => t('Send To'),
@@ -547,6 +557,20 @@
     '#description' => t('Enter multiple addresses on separate lines or separate them with commas.'),
     '#required' => TRUE,
   );
+  }
+  // else set a hidden flag to load the fixed recipient from config 
+  // later on (valid/sumbit)
+  else {
+  $form['message']['recipients'] = array(
+    '#type' => 'hidden',
+    '#title' => t('Send To'),
+    '#default_value' => 'recipient_address_fixed',
+    '#cols' => 50,
+    '#rows' => 5,
+    '#description' => t('Enter multiple addresses on separate lines or separate them with commas.'),
+    '#required' => TRUE,
+  );
+  }
   if (($emailtype == 'page') && ($nodeapi == FALSE)) {
     $form['message']['page'] = array(
       '#type' => 'item',
@@ -636,9 +660,12 @@
   global $base_url, $user;
 
   $url = $base_url .'/'. $form_state['values']['path'];
-
+  // if we use fixed recipient, then load from drupal config, else use textarea
+  if ( trim($form_state['values']['recipients']) == 'recipient_address_fixed'){
+    $recipients=variable_get('forward_recipient_address', '');
+  }
   // normalize address entries
-  $recipients = trim($form_state['values']['recipients']);
+  else $recipients = trim($form_state['values']['recipients']);
   $recipients = str_replace(array("\r\n", "\n", "\r"), ',', $recipients);
   $recipients = str_replace(' ', '', $recipients);
 
@@ -817,7 +844,12 @@
   $params['from'] = trim(mime_header_encode($form_state['values']['name']) .' <'. $from .'>');
   $params['headers']['Reply-To'] = trim(mime_header_encode($form_state['values']['name']) .' <'. $form_state['values']['email'] .'>');
 
-  $recipients = trim($form_state['values']['recipients']);
+  // if we use fixed, then load from drupal config
+  if ( trim($form_state['values']['recipients']) == 'recipient_address_fixed'){
+    $recipients=variable_get('forward_recipient_address', '');
+  }
+  // normalize address entries
+  else $recipients = trim($form_state['values']['recipients']);
   $recipients = preg_replace('/,,+/', ',', trim($recipients,','));
   $recipients = str_replace(array("\r\n", "\n", "\r"), ',', $recipients);
   $recipients = explode(',', $recipients);
