title: cPanel API2 add forwader using php error "The address to forward is not a valid email address"
body: <p>Here is my request:
  I just sent following request to the server:</p>
  
  <pre><code>$this-&gt;cpanel_api-&gt;mail()-&gt;add_forwader('subdomain.mydomain.com', '"krishna@subdomain.mydomain.com"', '"fwd"', '"krishna1bhat@gmail.com"');
  </code></pre>
  
  <p>And here is the calling function:</p>
  
  <pre><code>public function add_forwader($domain, $email, $fwdopt, $fwdemail='', $fwdsystem='',$failmsgs='',$pipefwd=''){
          $input=array(
                      'module'        =&gt; 'Email',
                      'function'      =&gt; 'addforward',
                      'domain'        =&gt; $domain,
                      'email'         =&gt; $email,
                      'fwdopt'        =&gt; $fwdopt
                 );
          !empty($fwdemail) &amp;&amp; array_push($input, array('fwdemail' =&gt;$fwdemail));
          !empty($fwdsystem) &amp;&amp; array_push($input, array('fwdsystem' =&gt;$fwdsystem));
          !empty($failmsgs) &amp;&amp; array_push($input, array('failmsgs' =&gt;$failmsgs));
          !empty($pipefwd) &amp;&amp; array_push($input, array('failmsgs' =&gt;$pipefwd));
  
          $query=$this-&gt;build_query($input);
          $raw=$this-&gt;query($query);
          echo "&lt;pre&gt;"; print_r($raw);
          $ob=json_decode($raw, false);
          //echo "&lt;pre&gt;"; print_r($ob);
          return $ob-&gt;cpanelresult-&gt;data;
      }
  </code></pre>
  
  <p>The print_r($raw); prints error like :</p>
  
  <pre><code>{"cpanelresult":{"apiversion":2,"error":"The address to forward is not a valid email address.","func":"addforward","data":["The address to forward is not a valid email address."],"event":{"result":1},"module":"Email"}}
  Forward success.
  </code></pre>
  
  <p>It says: "The address to forward is not a valid email address."</p>
  
  <p>But the email adding to cpanel is working fine:</p>
  
  <pre><code>function create_email()
      {
          $domain = 'subdomain.mydomain.com';
          $email = 'krishna1';
          $password = 'test123';
          $quota = 250;
          $this-&gt;cpanel_api-&gt;mail()-&gt;add_mail($domain, $email, $password, $quota);
      }
  </code></pre>
  
  <p>This function creates new email address "krishna1@subdomain.mydomain.com" at cpanel.</p>
  
  <p>Searching for the add_forwarder issue. Thanks!</p>