Use a classe class.smtp.inc  ( se n�o encontrar, tenho aqui, posso te
enviar ).

funciona assim : ( Retirei uma parte de meu sistema....n�o mudei as
vari�veis...s� exemplo. )


        ...
        ...
        $smtp=new smtp_class;
        $smtp->host_name=$_SESSION["EMAIL_SERVER"]; /* relay SMTP server address */
        $smtp->localhost=$_SESSION["ISPADMIN_SERVER"]; /* this computer address */
        $from=$_SESSION["EMAIL_SUPORTE"];
        $to=$_SESSION["EMAIL_SUPORTE"];
        $smtp->direct_delivery=1; /* Set to 1 to deliver directly to the recepient
SMTP server */
        $smtp->debug=0; /* Set to 1 to output the communication with the SMTP
server */
        $smtp->user=""; /* Set to the user name if the server requires
authetication */
        $smtp->realm=""; /* Set to the authetication realm, usually the
authentication user e-mail domain */
        $smtp->password=""; /* Set to the authetication password */
        $smtp->SendMessage( $from, array( $to), array(  "From: $from",
                                                                        "To: $to",
                                                                        "Subject: 
ISPAdmin Suporte",
                                                                        "Date: 
".strftime("%a, %d %b %Y %H:%M:%S %Z")),
                                                                        $body);
        ...


S�rgio Jos� Ferreira
WGO Internet
Catal�o - Goi�s

-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Ronan Lucio
Enviada em: quarta-feira, 27 de agosto de 2003 11:34
Para: [EMAIL PROTECTED]
Assunto: [FUGSPBR] Off-Topic - PHP


Pessoal,

Algu�m saberia dizer se � poss�vel um servidor PHP (FreeBSD)
enviar e-mails a partir de outro SMTP?

No php.ini s� tem a op��o para se especificar o path do
sendmail localmente... :-/

[]'s
Ronan
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/

_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/

Responder a