| 1 |
<?php |
<?php |
| 2 |
/* $Id: forward.module,v 1.30.2.68 2009/06/23 14:27:15 seanr Exp $ */ |
/* $Id: forward.module,v 1.30.2.69 2009/07/06 21:46:13 seanr Exp $ */ |
| 3 |
|
|
| 4 |
include(drupal_get_path('module', 'forward') .'/forward.theme'); |
include(drupal_get_path('module', 'forward') .'/forward.theme'); |
| 5 |
|
|
| 687 |
$recipients = explode(',', $recipients); |
$recipients = explode(',', $recipients); |
| 688 |
|
|
| 689 |
foreach ($recipients as $to) { |
foreach ($recipients as $to) { |
| 690 |
drupal_mail('forward', trim($to), $subject, $body, $from, $headers); |
$from = $edit['yname'] .' <'. variable_get('site_mail','') .'>'; |
| 691 |
|
$headers['Reply-To'] = $edit['yname'] .' <'. $edit['yemail'] .'>'; |
| 692 |
|
drupal_mail('forward', trim($to), $subject, $body, trim($from), $headers); |
| 693 |
// Ensure that we register a flood event for each e-mail. |
// Ensure that we register a flood event for each e-mail. |
| 694 |
flood_register_event('forward'); |
flood_register_event('forward'); |
| 695 |
} |
} |