PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > problem sending emamil across one postfix server
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
problem sending emamil across one postfix server

Réponse
 
LinkBack Outils de la discussion
Vieux 04/01/2008, 22h38   #1
Miren Urkixo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut problem sending emamil across one postfix server

Hello i want from one php page to send emails but i have one great problem.
The server is one postfix into one suse and the php pages are into the same
server with apache 2 and php 5.
it doesn't sent the messages and into the email server logs appears this:
Jan 3 16:28:55 server postfix/pickup[18946]: 7F6C978557: uid=30
from=<wwwrun>
Jan 3 16:28:55 server postfix/cleanup[18976]: 7F6C978557:
message-id=<20080103152855.7F6C978557@server.MI_DOMINIO.or g>
Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
from=<wwwrun@server.MI_DOMINIO.org>, size=722, nrcpt=1 (queue active)
Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
to=<infocuenta@server.MI_DOMINIO.org>, orig_to=<info@cuenta.com>,
relay=none, delay=0, status=deferred (delivery temporarily suspended:
transport is unavailable)


My emamils from the php page i send using this:

/* recipients */
$to = "info@MI_DOMINIO.com"; //$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 send

Can you me?
thanks
  Réponse avec citation
Vieux 04/01/2008, 23h08   #2
Jim Lucas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] problem sending emamil across one postfix server

Miren Urkixo wrote:
> Hello i want from one php page to send emails but i have one great problem.
> The server is one postfix into one suse and the php pages are into the same
> server with apache 2 and php 5.
> it doesn't sent the messages and into the email server logs appears this:
> Jan 3 16:28:55 server postfix/pickup[18946]: 7F6C978557: uid=30
> from=<wwwrun>
> Jan 3 16:28:55 server postfix/cleanup[18976]: 7F6C978557:
> message-id=<20080103152855.7F6C978557@server.MI_DOMINIO.or g>
> Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
> from=<wwwrun@server.MI_DOMINIO.org>, size=722, nrcpt=1 (queue active)
> Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
> to=<infocuenta@server.MI_DOMINIO.org>, orig_to=<info@cuenta.com>,
> relay=none, delay=0, status=deferred (delivery temporarily suspended:
> transport is unavailable)
>
>
> My emamils from the php page i send using this:
>
> /* recipients */
> $to = "info@MI_DOMINIO.com"; //$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 send
>
> Can you me?
> thanks
>


You probably need to set a custom From header entry


--
Jim Lucas

"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare
  Réponse avec citation
Vieux 04/01/2008, 23h13   #3
Miren Urkixo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] problem sending emamil across one postfix server

But how can i make it?
thanks, a lot of thanks
----- Original Message -----
From: "Jim Lucas" <lists@cmsws.com>
To: "Miren Urkixo" <miren@tinieblas.com>
Cc: <php-general@lists.php.net>
Sent: Saturday, January 05, 2008 12:08 AM
Subject: Re: [php] problem sending emamil across one postfix server


> Miren Urkixo wrote:
>> Hello i want from one php page to send emails but i have one great
>> problem.
>> The server is one postfix into one suse and the php pages are into the
>> same
>> server with apache 2 and php 5.
>> it doesn't sent the messages and into the email server logs appears this:
>> Jan 3 16:28:55 server postfix/pickup[18946]: 7F6C978557: uid=30
>> from=<wwwrun>
>> Jan 3 16:28:55 server postfix/cleanup[18976]: 7F6C978557:
>> message-id=<20080103152855.7F6C978557@server.MI_DOMINIO.or g>
>> Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
>> from=<wwwrun@server.MI_DOMINIO.org>, size=722, nrcpt=1 (queue active)
>> Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
>> to=<infocuenta@server.MI_DOMINIO.org>, orig_to=<info@cuenta.com>,
>> relay=none, delay=0, status=deferred (delivery temporarily suspended:
>> transport is unavailable)
>>
>>
>> My emamils from the php page i send using this:
>>
>> /* recipients */
>> $to = "info@MI_DOMINIO.com"; //$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 send
>>
>> Can you me?
>> thanks
>>

>
> You probably need to set a custom From header entry
>
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

  Réponse avec citation
Vieux 05/01/2008, 13h00   #4
Miren Urkixo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] problem sending emamil across one postfix server

Now i have chage the php scripts with the bellow script but appears the
bellow error.

Can anybody s me please. I don't know how can i solve mi proble for
sending emails using php againts one postfix into one SuSE linux.

Thnaks

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

mail($para, $asunto, $mensaje, $cabeceras, '-fminame@midomain.com');
?>



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





----- Original Message -----
From: "Jim Lucas" <lists@cmsws.com>
To: "Miren Urkixo" <miren@tinieblas.com>
Cc: <php-general@lists.php.net>
Sent: Saturday, January 05, 2008 12:08 AM
Subject: Re: [php] problem sending emamil across one postfix server


> Miren Urkixo wrote:
>> Hello i want from one php page to send emails but i have one great
>> problem.
>> The server is one postfix into one suse and the php pages are into the
>> same
>> server with apache 2 and php 5.
>> it doesn't sent the messages and into the email server logs appears this:
>> Jan 3 16:28:55 server postfix/pickup[18946]: 7F6C978557: uid=30
>> from=<wwwrun>
>> Jan 3 16:28:55 server postfix/cleanup[18976]: 7F6C978557:
>> message-id=<20080103152855.7F6C978557@server.MI_DOMINIO.or g>
>> Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
>> from=<wwwrun@server.MI_DOMINIO.org>, size=722, nrcpt=1 (queue active)
>> Jan 3 16:28:55 server postfix/qmgr[18947]: 7F6C978557:
>> to=<infocuenta@server.MI_DOMINIO.org>, orig_to=<info@cuenta.com>,
>> relay=none, delay=0, status=deferred (delivery temporarily suspended:
>> transport is unavailable)
>>
>>
>> My emamils from the php page i send using this:
>>
>> /* recipients */
>> $to = "info@MI_DOMINIO.com"; //$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 send
>>
>> Can you me?
>> thanks
>>

>
> You probably need to set a custom From header entry
>
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
> by William Shakespeare
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 00h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17306 seconds with 12 queries