| @@ 497-498 (lines=2) @@ | ||
| 494 | $old_mailfrom = ini_get("sendmail_from"); |
|
| 495 | ini_set("sendmail_from", $from); |
|
| 496 | $params = sprintf("-oi -f %s", '<>'); |
|
| 497 | if (!(mail($to,$sbj, $body,$headers,$params))) $flag=FALSE; |
|
| 498 | else $flag=TRUE; |
|
| 499 | if (isset($old_mailfrom)) |
|
| 500 | ini_set("sendmail_from", $old_mailfrom); |
|
| 501 | } |
|
| @@ 502-505 (lines=4) @@ | ||
| 499 | if (isset($old_mailfrom)) |
|
| 500 | ini_set("sendmail_from", $old_mailfrom); |
|
| 501 | } |
|
| 502 | else { |
|
| 503 | if (!(mail($to,$sbj, $body,$headers))) $flag=FALSE; |
|
| 504 | else $flag=TRUE; |
|
| 505 | } |
|
| 506 | return $flag; |
|
| 507 | } |
|
| 508 | ||