i used php mailer function but not send function?
<p>I am using phpmailer and my code is as follows. I am getting following error:</p>

<blockquote>
  <p>Message was not sent<br />
  Mailer Error: Could not instantiate mail function.</p>
</blockquote>

<p>Here is the code:</p>

<pre><code>$body .= "&lt;table width=\"75%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"&gt;";
$body .= "&lt;tr&gt;&lt;td width=\"30%\"&gt;Name : &lt;/td&gt;&lt;td&gt; $_POST[name]&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td width=\"30%\"&gt;Email : &lt;/td&gt;&lt;td&gt; $_POST[email]&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;tr&gt;&lt;td width=\"30%\"&gt;Country : &lt;/td&gt;&lt;td&gt; $_POST[phone]&lt;/td&gt;&lt;/tr&gt;";
$body .= "&lt;/table&gt;";

require_once("Mobile/class.phpmailer.php");

/* Values to display */
$user_name = $_POST[name];
$user_email = $_POST[email];
$user_phone = $_POST[phone];

/* Values to display */
$mail             = new PHPMailer(); // defaults to using php "mail()"
$body    = eregi_replace("[\]",'',$body);
$mail-&gt;SetFrom('haresh.kachhadiya@gmail.com', $user_name);
$address = "haresh.kachhadiya@gmail.com";
$mail-&gt;AddAddress($address, "Administrator");
$mail-&gt;AddCC('haresh.kachhadiya@gmail.com', "shreyas");
$mail-&gt;Subject    = "Place Order Contact Page - Detail";
$mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail-&gt;IsHTML(true); // send as HTML
$mail-&gt;Body = 'This is the test mail';

if(!$mail-&gt;Send()) {
    echo 'Message was not sent &lt;p&gt;';
    echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
}
else
{
    echo "hi....hi";
    exit;
</code></pre>
