title: How to solve codeigniter mail going to spam using aws server
body: <p><strong>Email always going to spam section using codeigniter. I have used codeigniter in aws server</strong>
  <strong>It is my library:</strong> </p>
  
  <p>CodeIgniter compatible email-library powered by PHPMailer</p>
  
  <p>This is my Controller:</p>
  
  <pre><code>       &lt;?php 
           $this-&gt;load-&gt;library('email');
           $subject = 'Regitration';
           $message = '&lt;p&gt;Thank you for registering.&lt;/p&gt;';
           $body = '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
                              &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
                              &lt;head&gt;
                          &lt;meta http-equiv="Content-Type" content="text/html; charset=' . strtolower(config_item('charset')) . '" /&gt;
                              &lt;title&gt;' . html_escape($subject) . '&lt;/title&gt;
                              &lt;style type="text/css"&gt;
                              body {
                              font-family: Arial, Verdana, Helvetica, sans-serif;
                              font-size: 16px;
                              }
                              &lt;/style&gt;
                              &lt;/head&gt;
                          &lt;body&gt;
                              ' . $message . '
                              &lt;/body&gt;
                              &lt;/html&gt;';
                              $result = $this-&gt;email-&gt;set_header('hello', 'test')
                              -&gt;set_newline("\r\n")
                              -&gt;from('test@gmail.com','test')
                              -&gt;to($this-&gt;input-&gt;post('jobemail'))
                              -&gt;subject($subject)
                              -&gt;message($body)
                              -&gt;send();
                              ?&gt;
  </code></pre>
  
  <p>How to solve?</p>