Hello All, First of all, thanks Billy for you help yesterday.
My code will only send emails to the first email address of a group. I'm not sure why it doesn't recognize the other email addresses in the box. Here's the link to the page - http://mybusinesscircle.startlogic.com/emailextrator_plaxo.php - I am referring to. Put two email in the box like this [EMAIL PROTECTED],[EMAIL PROTECTED] and notice that only the first email listed will get the email. Here is the code. <?php //print_r($_POST); $to =""; //echo ($_POST['recipient_list']); $recipients = str_replace("\"","",$_POST['recipient_list']); $temp = explode(",", $recipients); /* Email Validation Check */ foreach($temp as $value) { if (preg_match("/<(.*)>/", $value, $a)) { // i.e. abc <[EMAIL PROTECTED]> - Extracting email from it $mem_email = trim($a[1]); } else { $mem_email = trim($value); // [EMAIL PROTECTED] } $subject="My Business Circle Invitation"; $headers = "From: My Business Circle<[EMAIL PROTECTED]>\r\n"; $headers.= "Content-type: text/html; charset=us-ascii\r\n"; $body = ""; $body .= '<table width="100%"><tr><td>Hi</td></tr>'; $body .= '<tr><td>You can catch me at My Business Circle</td><tr>'; $body .= '<tr><td>'; $body .= "<br>Link to Login: <a href='http://mybusinesscircle.startlogic.com/signup.php' target = '_blank' >LOGIN</a><br><br><strong>Regards:</strong><br>My Business Circle<br>. <img src='http://mybusinesscircle.startlogic.com/images/logo.gif' border='0' /></td></tr></table>"; //@mail($email, $subject, $body, $headers); if (@mail($mem_email, $subject, $body,$headers)){ header("Location: emailextrator_plaxo.php?m=s"); //echo("done"); exit; } else { header("Location: emailextrator_plaxo.php?m=f"); //echo("doneasdfasdf"); exit; } } // for each ?> Any suggestions? Thanks, Tisha
