PHP mail send code not working
<p>I'm trying to use this coding but its not processing, and its not outputing any errors.</p>

<pre><code>function send_email($subject='Activate Your Account', $html_content, $text_content, $headers) { 

    $en['email'] = 'test@email.com';
    $to = $en['email'];
    $en['memb_id'] = '39';
    $en['confcode'] = '69696969';
    $en['user'] = 'couple';

    $text_content = "Confirm Your domain.com Account\r\n";
    $text_content.= "UserName: " . $en['user'] . "\r\n";
    $text_content.= "Activate Your Account by visiting this link below:\r\n";
    $text_content.= "http://www.domain.com/confirm/" . $en['memb_id'] . "/" . $en['confcode'] . "\r\n";
    $text_content.= "\r\n";
    $text_content.= "______________________\r\n";
    $text_content.= "Thanks,\r\n";
    $text_content.= "Staff";

    $html_content = "&lt;html&gt;&lt;body&gt;&lt;h1&gt;Confirm Your domain.com Account&lt;/h1&gt;";
    $html_content.= "&lt;p&gt;UserName: " . $en['user'] . "&lt;br&gt;";
    $html_content.= "Activate Your Account by visiting this link below:&lt;br&gt;";
    $html_content.= "&lt;a href=http://www.domain.com/confirm/" . $en['memb_id'] . "/" . $en['confcode'] . "&gt;http://www.domain.com/confirm/" . $en['memb_id'] . "/" . $en['confcode'] . "&lt;/a&gt;";
    $html_content.= "&lt;/p&gt;";
    $html_content.= "______________________&lt;br&gt;";   
    $html_content.= "Thanks,&lt;br&gt;";
    $html_content.= " Staff";
    $html_content.= "&lt;/body&gt;&lt;/html&gt;";

    $mime_boundary = 'Multipart_Boundary_x'.md5(time()).'x';

    $headers = "MIME-Version: 1.0\r\n";
    $headers.= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\r\n";
    $headers.= "Content-Transfer-Encoding: 7bit\r\n";

    $body = "This is a multi-part message in mime format.\n\n";
    $body.= "--$mime_boundary\n";
    $body.= "Content-Type: text/plain; charset=\"charset=us-ascii\"\n";
    $body.= "Content-Transfer-Encoding: 7bit\n\n";
    $body.= $text_content;
    $body.= "\n\n";

    $body.= "--$mime_boundary\n";
    $body.= "Content-Type: text/html; charset=\"UTF-8\"\n";
    $body.= "Content-Transfer-Encoding: 7bit\n\n";
    $body.= $html_content;
    $body.= "\n\n";
    $body.= "--$mime_boundary--\n";

    $headers.= 'From: &lt;support@domain.com&gt;' . "\r\n";
    $headers.= "X-Sender-IP: $_SERVER[SERVER_ADDR]\r\n";
    $headers.= 'Date: '.date('n/d/Y g:i A')."\r\n";
    $headers.= 'Reply-To: &lt;support@domain.com&gt;' . "\r\n";

    return mail($to, $subject, $body, $headers);
    echo $to;
    echo $subject;
    echo $body;
    echo $headers;
    }
</code></pre>
