de pe php.net
search mail
---------------------------
hzmz at bofh dot auca dot kg
24-Jul-2003 11:16
If you are trying to send mail and you are in chroot. You can do it via
your smtp server.
<?
include_once 'Mail.php';
$headers['Subject'] = 'Your subject';
$headers['From'] = '[EMAIL PROTECTED]';
$params['host'] = '127.0.0.1';
$mailer = &Mail::factory('smtp', $params);
$status =$mailer->send('[EMAIL PROTECTED]', $headers, 'your message');
if (PEAR::isError($status)) {
print("***ERROR");
}
?>
Thanks to Horde team: http://www.horde.org
---------------------
si merge :)
ofi
On Wed, 10 Dec 2003, Serghei Amelian wrote:
> <html>
> <?php
> mail("blabla.com", "Testing PHP Mail", "This is a test of the PHP mail
> functions") ;
> ?>
> </html>
>
> Am facut pagina de test de mai sus. Problema e ca nu trimite nimic, dar nici
> un log-uri nu zice nimic. Cum pot sa silesc PHP-ul sa-mi dea niste informatii
> de depanare?
>
> PS Apache-ul meu e in chroot, da' am pus sendmail unde trebuie, etc. Am o
> configuratie asemanatoare pe alta masina, da' acolo apache plangea cand nu
> gasea sendmail.
>
> --
> Serghei.
>
> ---
> Detalii despre listele noastre de mail: http://www.lug.ro/
>
>
>
---
Detalii despre listele noastre de mail: http://www.lug.ro/