title: Sending mail in php
body: <p>Here i am new to PHP, i want to send the mail and my application is running on go daddy sahre hosting so please tell me hows can i achieve it . 
  thanks to all.</p>
  
  <p>I got the response from you guys and I tried but there is some problem .<br>
  this is my code ..</p>
  
  <pre><code>  &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=utf-8" /&gt;
  &lt;title&gt;Send Mail&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;?php
          if( isset($_POST['email']) &amp;&amp; isset($_POST['subject']) &amp;&amp; isset($_POST['msg']) )
          {
              $to = $_POST['email'];
              $subject = $_POST['subject'];
              $msg = $_POST['msg'];
              $from = "abhisheks.net@gmail.com";
              $headers = "From: $from";
              mail($to,$subject,$msg,$headers);
              echo "Mail Send";
          }
  
   ?&gt;
   &lt;form action="sendMail.php" method="post"&gt;
  
   &lt;div&gt;
   &lt;table style="width:100%;"&gt;
   &lt;tr&gt;
   &lt;td&gt;Email:&lt;/td&gt;
   &lt;td&gt;&lt;input type="text" name="email" /&gt;&lt;/td&gt;
   &lt;td&gt;Subject:&lt;/td&gt;
   &lt;td&gt;&lt;input type="text" name="subject" /&gt;&lt;/td&gt;
   &lt;/tr&gt;
    &lt;tr&gt;
   &lt;td&gt;Message&lt;/td&gt;
   &lt;td&gt;&lt;input type="text" name="msg" /&gt;&lt;/td&gt;
   &lt;td colspan="2"&gt; &lt;input type="submit" value="Send Mail" /&gt;&lt;/td&gt;
  
   &lt;/tr&gt;
   &lt;/table&gt;
   &lt;/div&gt;
   &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And after running this page i got the error</p>
  
  <pre><code>"Warning: mail() [function.mail]: SMTP server response: 554 The message was rejected because it contains prohibited virus or spam content in D:\Hosting\5676400\html\myPhp\temp\admin\sendMail.php on line 17"
  </code></pre>