Index: modules/contact.module =================================================================== RCS file: /cvs/drupal/drupal/modules/Attic/contact.module,v retrieving revision 1.51.2.1 diff -u -r1.51.2.1 contact.module --- modules/contact.module 18 Oct 2006 20:14:42 -0000 1.51.2.1 +++ modules/contact.module 22 Jan 2007 10:01:02 -0000 @@ -338,9 +338,6 @@ '#rows' => 15, '#required' => TRUE, ); - $form['copy'] = array('#type' => 'checkbox', - '#title' => t('Send me a copy.'), - ); $form['submit'] = array('#type' => 'submit', '#value' => t('Send e-mail'), ); @@ -386,11 +383,6 @@ // Send the e-mail: user_mail($to, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); - // Send a copy if requested: - if ($edit['copy']) { - user_mail($from, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); - } - // Log the operation: flood_register_event('contact'); watchdog('mail', t('%name-from sent %name-to an e-mail.', array('%name-from' => theme('placeholder', $user->name), '%name-to' => theme('placeholder', $account->name)))); @@ -469,9 +461,6 @@ '#title' => t('Message'), '#required' => TRUE, ); - $form['copy'] = array('#type' => 'checkbox', - '#title' => t('Send me a copy.'), - ); $form['submit'] = array('#type' => 'submit', '#value' => t('Send e-mail'), ); @@ -527,11 +516,6 @@ // Send the e-mail to the recipients: user_mail($contact->recipients, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); - // If the user requests it, send a copy. - if ($edit['copy']) { - user_mail($from, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); - } - // Send an auto-reply if necessary: if ($contact->reply) { user_mail($from, $subject, wordwrap($contact->reply), "From: $contact->recipients\nReply-to: $contact->recipients\nX-Mailer: Drupal\nReturn-path: $contact->recipients\nErrors-to: $contact->recipients");