hello i have one great problem using php for sinding email across one email server (in the same machine) that is one Linux suse with postfix. it doesn't is sent, alwats appears one error into the mail log (bellow).

Can you help me please? I am trying to solve this problem during several weeks

i am trying to send email s using this:

//script
<?php
$para      = '[EMAIL PROTECTED]';
$asunto    = 'el asunto';
$mensaje   = 'hola carabola';
$cabeceras = 'From: miname <[EMAIL PROTECTED]>' . "\n" .
   'Reply-To: [EMAIL PROTECTED]' . "\n" .
   'X-Mailer: PHP/' . phpversion()."\n";

mail($para, $asunto, $mensaje, $cabeceras, '[EMAIL PROTECTED]');
?>

or using this:


/* recipients */
$to  = "[EMAIL PROTECTED]"; //$nombre . " <" . $email. ">";
/* subject */
$subject = "Email desde la pagina web";
/* message */
$message = "
<html>
<head>
</head>
<body>
<p>Has recibido este correo desde el formulario de la pagina web.</p>
<p>
Nombre: $nombre <br>
Email: $email <br>
Asunto del mensaje: $asunto
</p>
 </body>
</html>
";

/* To send HTML mail, you can set the Content-type header. */
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

/* additional headers */
$headers .= "From: " . $nombre . " <" . $email. ">";


/* and now mail it */
mail($to, $subject, $message, $headers);
?>

but it doesn't sent.
Always appears this error:

//log
Jan  5 13:52:02 server postfix/pickup[16768]: 20EB589B68: uid=30
from=<[EMAIL PROTECTED]>
Jan  5 13:52:02 server postfix/cleanup[17322]: 20EB589B68:
message-id=<[EMAIL PROTECTED]>
Jan  5 13:52:02 server postfix/qmgr[7450]: 20EB589B68:
from=<[EMAIL PROTECTED]>, size=394, nrcpt=1 (queue active)
Jan  5 13:52:02 server postfix/qmgr[7450]: 20EB589B68:
to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=none,
delay=0, status=deferred (delivery temporarily suspended: transport is
unavailable)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to