*Here's the code for the main page.*

<?php ob_start();?>
<script>
function submitform()
{
 document.forms[0].action='myAccount.php';
 document.forms[0].submit();
}
</script>
<SCRIPT src="js/util.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/basic.js" type=text/javascript></SCRIPT>
<SCRIPT src="js/abc_launcher.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript><!--
var contact_info = new Array();
var contacts_str = '';
function onABCommComplete(dojo) {
 //debugger;
  var mytextarea = document.getElementById('recipient_list');
  var contacts = mytextarea.value.split(', ');
  var contact_pattern = /(.*) <(.*)>/;
  var result;

 /* var formnode = dojo.byId('plaxoform');
  var inputnode = null;
  for (index in contacts) {

  var parent = document.getElementById("divide");
  div = document.createElement("div");
  var tbl=div.appendChild(document.createElement("table"));
  var tb=tbl.appendChild(document.createElement("tbody"));


  result = contacts[index].match(contact_pattern);

 var tr=tb.appendChild(document.createElement("tr"));
 var td=tr.appendChild(document.createElement("td"));
 parent.appendChild(div);
 var checkbox=document.createElement("input");
 checkbox.type="checkbox";
 checkbox.value=result[2];

 //checkbox.style="visibility:hidden";
 var pname=document.createElement("input");
 pname.type="text";
 pname.value=result[2];

 td.appendChild(checkbox);
 td.appendChild(pname);



    inputnode = document.createElement('input');
    inputnode.setAttribute('type', 'hidden');
    inputnode.setAttribute('name', 'fullname[]');
    inputnode.setAttribute('value', result[1]);
    formnode.appendChild(inputnode);
    inputnode = document.createElement('input');
    inputnode.setAttribute('type', 'hidden');
    inputnode.setAttribute('name', 'address[]');
    inputnode.setAttribute('value', result[2]);
    formnode.appendChild(inputnode);
  }
 var td=tb.appendChild(document.createElement("/td"));
 var tr=tr.appendChild(document.createElement("/tr"));
 var tb=tbl.appendChild(document.createElement("/tbody"));
 var tbl=div.appendChild(document.createElement("/table"));
 */
  //formnode.submit();

}
//--></SCRIPT>
<?php
include "include/open_con.php";
## Variables Management ###
$banner_page_id = 2;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>My Business Circle's Email Extractor</title>
<link href="style/styleli.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<div id="whitebackground">
<?php include("include/inc.header2.php"); ?>
<div id="mid_div">
<div id="header1"><?php include("include/inc.topNav.php"); ?></div>

 <div id="body">

<div id="wrapper">
<div id="rightside"></div>
 <div id="ser">
<p class="se"></p>
<div id="join" align="left">
<?php if(isset($_SESSION['visiting'])){?>
<img src="images/welcomenew.gif" alt="Welcome to My Bussiness Circle">
<span style="padding-left:60px;color:#CC0066;font-weight:bold;"
>Congratulation! Your account is activated successfully.</span>
<?php
unset($_SESSION['visiting']);
}else{
 echo '<img src="images/join.gif" alt="Join My Bussiness Circle">';
}?>
<form action="invitefriends_plaxo.php"  accept-charset="UTF-8" method="post"
id="dcl-importer-form">

    <table width="80%" height="40%" border="0" align="center"
cellpadding="4" cellspacing="0" >
    <?php
        $message = @$_GET['m'];
        if(isset($message)){
      switch($message){
    case "s":
           $mess = 'Your invitaion sent successfully.';
          break;
          case "f":
           $mess = 'Error occure.Please try again';
          break;
      }
      echo ' <tr><td valign="top" colspan="2"
class="success">'.$mess.'</td></tr>';
        }

    ?>


  <tr>
   <td valign="top" colspan="2" class="success">

    <div><strong>Want to invite easily invite your friends to My Bussiness
Circle?</strong><br><br />
    Import contacts directly from your GMail, Yahoo!, AOL, or OutLook
accounts.  &nbsp;Click on any of the images below to get started. <br>
    <br />
    <div>
    <span class="form-item">
      <label for="edit-username">
                     <A onClick="showPlaxoABChooser('recipient_list',
'/plaxo_cb.htm'); return false;" href=""><IMG alt="Add from my address book"
src="images/contacts-grab.jpg" border="0"></A>

                     </label>
    </span></div>
     <br>
    <div>
    <span class="form-item">
     <label for="edit-password">Click on the image above to enter friends
from your email accounts below and/or directly enter email address below use
a &quot;,&quot; between each.</label></span><br>
    <textarea id="recipient_list" rows="7" cols="50" name="recipient_list"
style="width:480;"></textarea>
    <input type="hidden" name="form_token"
id="edit-dcl-importer-form-form-token"
value="34fb92c9b590a0e57bf2d750056ecf03"  />
    <input type="hidden" name="form_id" id="edit-dcl-importer-form"
value="dcl_importer_form"  />
    <input id="cancel" name="cancel" value="Skip" type="button"
onClick="javascript:submitform();">&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="SendInvitation" name="SendInvitation"
value="SendInvitation" type="submit" onClick="javascript:submitform();">
    <br>
    <br>
    <span style="font-size:9px;color:gray;font-weight:normal;">We won't
store your login or password or email anyone without your
permission.<span>    </div>
    </div>

   </td>
  </tr>
  <tr>
   <td valign="top" colspan="2"><img src="images/trans.gif" width="1"
height="25" border="0" alt=""></td>
  </tr>

  <? if(isset($_REQUEST['err']))
  {?>

  <tr>
   <td valign="top" colspan="2" class="error"><strong>Error</strong>
<br><?=stripslashes($_REQUEST['err'])?></td>
  </tr>
  <tr>
   <td valign="top" colspan="2"><img src="images/trans.gif" width="1"
height="25" border="0" alt=""></td>
  </tr>
  <? } ?>

        </table>
       <center>
     <p>
  <b>
  <span style="color:#EE0000">
  <?
  if($err_msg != "")
  {
  echo($err_msg);
  }

  ?>
  </span>
  </b>
  </p>
  </center>
      </form>
   <br />
<a class="more1" href="#"></a> <div class="signup"></div>
</div>
<p class="se_down"></p>
</div>
</div>
<br /><br /><br /><br /><br /><br />
</div>
</div>
<?php include("include/inc.footer.php"); ?>
</div>
</center>
</body>
</html>

*And here the code for invitefriends_plaxo.php*

<?php
//print_r($_POST);
$to ="";
//echo ($_POST['recipient_list']);
$recipients = str_replace("\"","",$_POST['recipients']);
$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<[EMAIL PROTECTED]>
";
$headers.= "Content-type: text/html; charset=us-ascii";
$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

?>

*I hope this helps you help me.
*

On Fri, Apr 4, 2008 at 1:48 PM, William Piper <[EMAIL PROTECTED]> wrote:

>    fremaje31 wrote:
> >
> >
> > Hello All,
> >
> > The developer that was assisting me on a project is no where to be
> > found and my client needs the project completed yesterday. I know
> > PHP/MySQL but I'm not advanced like the person who was assisting me.
> >
> > Here's the problem, we created a email extractor and it works but
> > after the emails are dumped into the text area and I hit the "invite"
> > button, it says the Invite is sent but it never arrives.
> >
> > Here's the link -
> > http://mybusinesscircle.startlogic.com/emailextrator_plaxo.php
> > <http://mybusinesscircle.startlogic.com/emailextrator_plaxo.php>
> >
> > If you have any ideas what is going on please help.
> >
> > If you are willing to help, I have the code available. I was told by
> > another developer that it was simple to fix but I am clueless.
> >
> > Thanks in advance for helping,
> >
> > Tisha
>
> We really can't do much without seeing the code of the page.
>
> bp
>
> 
>



-- 
Tisha Littlejohn
www.ChocolatesOMP.com
800.883.8713

Have more to do than you have time for?


[Non-text portions of this message have been removed]

Reply via email to