title: Email sent to spam folder instead of Inbox using Codeigniter
body: <p>I am developing an e-commerce system. My e-commerce system is up in my hosting called zoom. I am done in the part of ordering and right now, I'm having difficulty in sending the email. </p>
  
  <p>It is working but it goes in the spam folder instead of inbox. </p>
  
  <p>NOTE: I already created an email account in my hosting zoom and I used it in my code(you can see below)</p>
  
  <p>Question: I want to send the email without being labeled as spam. Is there something missing or wrong in my code? Please point me towards right direction.</p>
  
  <p><strong>Controller</strong> </p>
  
  <pre><code> public function process()
      {         
          $id = $this-&gt;session-&gt;userdata('id');
          $where = array('id' =&gt; $id);
          $get_orders  = $this-&gt;Crud_model-&gt;join_orders_customer('*','orders',$id);
          $get_invoice = $this-&gt;Crud_model-&gt;get_invoice('*','orders',$id);
  
          $email = $this-&gt;Crud_model-&gt;get_email($id);
  
          $config = array(
                      'smtp_timeout' =&gt; '4',
                      'charset' =&gt; 'utf-8',
                      'mailtype'=&gt; 'html'
                      );
                      $this-&gt;load-&gt;initialize($config);
                      $fromemail="zeesdelivery@zessdelivery.com";
                      $to = $email-&gt;email_address;
                      $subject = "Your Order is not Processing";
                      foreach($get_orders as $row){
                       $mesg = "&lt;h1&gt;Schedule Accepted!!!&lt;/h1&gt; 
  
                              &lt;h3&gt;Thank you for trusting and using Exclure Pest Control. $row-&gt;product_name&lt;/h3&gt; 
                              &lt;h3&gt;Your reserve inspection is accepted. We sure to call you as soon as possible&lt;/h3&gt;
                              &lt;p&gt;--------------------------------------------------------------------------------------&lt;/p&gt;
                              &lt;h4&gt;For more details contact us at,&lt;/h4&gt;
                              &lt;h4&gt;Exclure Pest Control&lt;/h4&gt;    
                              &lt;h4&gt;Email : exclure@exclure.com.ph&lt;/h4&gt;
                              &lt;h4&gt;Contact Number: 525-5399/ 498-1626 &lt;/h4&gt;              
                              &lt;h4&gt;Facebook : https://web.facebook.com/ExclurePestControl/&lt;/h4&gt;";
                      }
  
                     $this-&gt;load-&gt;library('email');
                      $this-&gt;email-&gt;clear();
                      $this-&gt;email-&gt;from($fromemail, 'Zees Delivery');
                      $this-&gt;email-&gt;to($to);
                      $this-&gt;email-&gt;set_header('Header1', 'Value1');
                      $this-&gt;email-&gt;set_newline("\n");
                      $this-&gt;email-&gt;subject($subject);
                      $this-&gt;email-&gt;message($mesg);
                      $this-&gt;email-&gt;set_mailtype('html');
                      $this-&gt;email-&gt;send();
                      $this-&gt;cart-&gt;destroy();
                      echo json_encode("success");
              }
  </code></pre>