| @@ 520-521 (lines=2) @@ | ||
| 517 | $old_mailfrom = ini_get("sendmail_from"); |
|
| 518 | ini_set("sendmail_from", $from); |
|
| 519 | $params = sprintf("-oi -f %s", '<>'); |
|
| 520 | if (!(mail($to,$sbj, $body,$headers,$params))) $flag=FALSE; |
|
| 521 | else $flag=TRUE; |
|
| 522 | if (isset($old_mailfrom)) |
|
| 523 | ini_set("sendmail_from", $old_mailfrom); |
|
| 524 | } |
|
| @@ 525-528 (lines=4) @@ | ||
| 522 | if (isset($old_mailfrom)) |
|
| 523 | ini_set("sendmail_from", $old_mailfrom); |
|
| 524 | } |
|
| 525 | else { |
|
| 526 | if (!(mail($to,$sbj, $body,$headers))) $flag=FALSE; |
|
| 527 | else $flag=TRUE; |
|
| 528 | } |
|
| 529 | return $flag; |
|
| 530 | } |
|
| 531 | ||