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
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)
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
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
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
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
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
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:
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);
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
10 matches
Mail list logo