| 1 |
<?php |
<?php |
| 2 |
// $Id: smtp.module,v 1.17.2.7 2008/07/17 14:58:08 oadaeh Exp $ |
// $Id: smtp.module,v 1.17.2.8 2008/09/23 22:03:01 oadaeh Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 276 |
$from_name = variable_get('site_name', ''); |
$from_name = variable_get('site_name', ''); |
| 277 |
} |
} |
| 278 |
|
|
| 279 |
|
//Hack to fix reply-to issue. |
| 280 |
|
$properfrom = variable_get('site_mail',''); |
| 281 |
|
if (!empty($properfrom)) { |
| 282 |
|
$headers['From'] = $properfrom; |
| 283 |
|
} |
| 284 |
|
if (!isset($headers['Reply-To']) || empty($headers['Reply-To'])) { |
| 285 |
|
$headers['Reply-To'] = $from; |
| 286 |
|
} |
| 287 |
|
|
| 288 |
// Blank value will let the e-mail address appear. |
// Blank value will let the e-mail address appear. |
| 289 |
|
|
| 290 |
if ($from == NULL || $from == '') { |
if ($from == NULL || $from == '') { |