Hi there...
I seem to be hitting a snag on this bit of code I pulled down from here...
I've got a function:
SendEMail($emailTo, $emailFrom, $emailSubject, $emailBody)
.. and I concat all these parameters into a string called: $emailStream
.. and I take that and use 'fsockopen()' to connect to a mail server...
and then I fputs($sock, $emailStream) my email message to the server...
like so:
$emailStream = "HELO ".$mailServer."\n";
$emailStream .= "MAIL FROM: ".$emailFrom."\n";
$emailStream .= "RCPT TO: ".$emailTo."\n";
$emailStream .= "DATA\n";
.. etc.
.. the issue I'm having is when I specify more than 1 email address in my $emailTo string.. i.e. $emailTo = "bla@who.org" works fine, but $emailTo = "bla@who.org, me@what.com"
no matter what seperator i use, comma, semicolon, etc.. it cheeses..
any ideas?