Page 1 of 1

send mail to more then 1 person

Posted: Mon Jan 03, 2005 3:03 am
by pelegk2
i recive this error :
Warning: mail(): SMTP server response: 501 Syntax error, parameters in command "MAIL FROM:<pelegk@woowww.com, david_bt@woowww..com>" unrecognized or missing in C:\Program Files\Apache Group\Apache2\htdocs\test\mail2.php on line
why is that
?

Posted: Mon Jan 03, 2005 3:38 am
by feyd
I'd guess it's because of 2 email addresses in the from, the latter being bad and in the wrong syntax.

well i know that

Posted: Mon Jan 03, 2005 3:45 am
by pelegk2
I'd guess it's because of 2 email addresses in the from
that the perpuse! so how do i send the email to 2 persons?

Posted: Mon Jan 03, 2005 3:47 am
by feyd
put their addresses in the "to" side. From is supposed to be 1 person/address. To/CC/BCC can be any number of persons/addresses.

Posted: Mon Jan 03, 2005 3:57 am
by pelegk2
oppps my ,istake

Posted: Mon Jan 03, 2005 2:06 pm
by ianlandsman
You might want to try using the phpmailer library: http://phpmailer.sourceforge.net/. I've had alot of success with it.

Posted: Tue Jan 04, 2005 5:09 am
by pelegk2
ok")