Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: "Maria Garcia Suarez" <[EMAIL PROTECTED]> > With the proposed changes does it become something usable? it all depends on what you mean by "usable"!!! :oP if it works for what you want, and it satisfies your needs, then you can use it test it, and if it works ok for you, and don't want to

Re: [PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hi there! --- Juan Nin <[EMAIL PROTECTED]> wrote: > From: "Curt Zirzow" <[EMAIL PROTECTED]> > > You must send the rctp to's bfore you start > sending the data. To be > > a more stable smtp client there should be more > sanity checking before > > blindy doing this: > > > > if ($cc != "") { > > $C

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: "Curt Zirzow" <[EMAIL PROTECTED]> > You must send the rctp to's bfore you start sending the data. To be > a more stable smtp client there should be more sanity checking before > blindy doing this: > > if ($cc != "") { > $CC = split(',', $cc); > foreach ($CC as $ccemal) { > talk2serv

Re: [PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hi there! --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Juan Nin <[EMAIL PROTECTED]> wrote: > > From: "Maria Garcia Suarez" > <[EMAIL PROTECTED]> > > [...] > > > > but, IMHO, that script isn't well coded as you > > have already seen, and I also > > don't like the way it's programmed, it's very > >

Re: [PHP] Send mail using external server

2003-07-14 Thread Curt Zirzow
Juan Nin <[EMAIL PROTECTED]> wrote: > From: "Maria Garcia Suarez" <[EMAIL PROTECTED]> > [...] > > but, IMHO, that script isn't well coded as you have already seen, and I also > don't like the way it's programmed, it's very rudimentary... I would use > phpmailer as someone told you before instead..

Re: [PHP] Send mail using external server

2003-07-14 Thread Curt Zirzow
Maria Garcia Suarez <[EMAIL PROTECTED]> wrote: > > [...] > > >talk2server("MAIL FROM: ".$from."\n"); > > >if (listen2server() == "250") > > > talk2server("RCPT TO: ".$to."\n"); You must send the rctp to's bfore you start sending the data. To be a more stable smtp client there should

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: "Maria Garcia Suarez" <[EMAIL PROTECTED]> > Hola Juan! Hola! :) (Hi!) > Thanks for your help Juan :-) de nada!!! (you are welcome) > What should I change in the script in order to make it > work? after the "RCPT TO" for the $to variable, you should check if $cc is defined, if it is, t

Re: [PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hola Juan! Thanks for your help Juan :-) A simple but must-be-asked question... --- Juan Nin <[EMAIL PROTECTED]> wrote: > From: "Maria Garcia Suarez" > <[EMAIL PROTECTED]> > > > The problem is that blind copies > > don't reach destination, mails in the To: field > arrive > > well, mails in the

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: "Maria Garcia Suarez" <[EMAIL PROTECTED]> > The problem is that blind copies > don't reach destination, mails in the To: field arrive > well, mails in the BCC: desappear and never reach the > mailbox (nor get back :-? [...] >talk2server("MAIL FROM: ".$from."\n"); >if (listen2server()