[PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hi there! I'm developing a program that has a kind of mail client from where users can send mails and get a blind copy in their e-mail boxes. The program uses mail() in those servers having a SMTP installed in the very same server. I would like to let people send mails even if the server is not

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() == 250)

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 BCC: desappear

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, then do

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 be more sanity

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.. Agreed! :D

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 rudimentary... I would

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) { talk2server(RCPT 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 != ) { $CC = split(',', $cc);

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 use