mail error with PHP Mailer
<p>As advised I have tried using PHP Mailer to send email attachments with a form, however I keep getting the error message "Mailer Error: Could not instantiate mail function.</p>

<p>I have rechecked the email address and cannot find any error for same</p>

<p>here is the code for the PHP as well as the code for the form. Any input is greatly appreciated. Thanks, JB</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;PHPMailer - Mail() basic test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;?php

require_once('class.phpmailer.php');

$mail             = new PHPMailer(); // defaults to using php "mail()"

$body             = file_get_contents('talent3.html');
$body             = eregi_replace("[\]",'',$body);

$mail-&gt;AddReplyTo("jbgraphics@rogers.com","First Last");

$mail-&gt;SetFrom('jbgraphics@rogers.com', 'First Last');

$mail-&gt;AddReplyTo("jbgraphics@rogers.com","First Last");

$address = "jbgraphics@rogers.com";
$mail-&gt;AddAddress($address, "John Beadle");

$mail-&gt;Subject    = "PHPMailer Test Subject via mail(), basic";

$mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; //     optional, comment out and test

$mail-&gt;MsgHTML($body);

$mail-&gt;AddAttachment("images/phpmailer.pdf");      // attachment
$mail-&gt;AddAttachment("images/phpmailer_mini.jpeg"); // attachment

if(!$mail-&gt;Send()) {
echo "Mailer Error: " . $mail-&gt;ErrorInfo;
} else {
echo "Message sent!";
}

?&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>and the form code:</p>

<pre><code>&lt;form action="test_mail_basic.php" method="post"
enctype="multipart/form-data"&gt;
&lt;label for="file" class="bodyCopy"&gt;&lt;span class="bodyCopy"&gt;Attach resume:&lt;/span&gt;&lt;/label&gt;&lt;br     /&gt;
&lt;input type="file" name="attach1" id="file" /&gt;&lt;br /&gt; 
&lt;br /&gt;
&lt;label for="file" class="bodyCopy"&gt;&lt;span class="bodyCopy"&gt;Attach photo:&lt;/span&gt;&lt;/label&gt;&lt;br /&gt;
&lt;input type="file" name="attach2" id="file" /&gt;&lt;br /&gt; 
&lt;br /&gt;
&lt;input type="submit" name="submit" value="Submit" /&gt;
&lt;/form&gt;
</code></pre>
