title: Add multiple Email address to contact via SOAP - Sugar CRM
body: <p>I want to add multiple email address to a contact via SOAP api, 
  suppose i register a user from my php app. via registration page with testemail1@test.com for ex., so this will create a new contact in sugarcrm via set entry and "email1" parameter in soap set_entry call, in name_to_value_list array.</p>
  
  <p>Now suppose i update the account information in my php web app. and updates email address to testemail2@test.com , so now, this should add this new email address to the current contact as primary email address and opt out the old email address (as we can add multiple email address to sing contact record).</p>
  
  <p>see the sample code here :</p>
  
  <pre><code>    $result = $mySoap-&gt;call('set_entry', array($session_id, 'module_name'=&gt;'Contacts',     array(
      array("name" =&gt; 'first_name',"value" =&gt; $_POST['first_name']),
      array("name" =&gt; 'last_name',"value" =&gt; $_POST['last_name']),
      array("name" =&gt; 'email1',"value" =&gt; $_POST['email_address']),   //Emails is suppose     testemail1@test.com for first time
      array("name" =&gt; 'primary_phone_c',"value" =&gt; $primary_phone),
      array("name" =&gt; 'prefered_contact_c',"value" =&gt; $_POST['prefered_contact']),
      array("name" =&gt; 'primary_address_street',"value" =&gt; $_POST['address']),
      array("name" =&gt; 'primary_address_street_2_c',"value" =&gt; $_POST['address_2']),
      array("name" =&gt; 'primary_address_city',"value" =&gt; $_POST['address_city']),
      array("name" =&gt; 'primary_address_state',"value" =&gt; $_POST['address_state']),
      array("name" =&gt; 'primary_address_postalcode',"value" =&gt;     $_POST['address_postalcode']),
      array("name" =&gt; 'address_country_c',"value" =&gt; $_POST['address_country']),
       )));
  </code></pre>
  
  <p>So any sample Soap call or any idea like i use email2 field instead email1 in set_entry or else?</p>
  
  <p>Thanks,
  Dhaval Darji</p>