I purchased a php script that uses mail() to send the registration email with a confirmation link. My problem is that when the script goes to email I get a error on the mail() line. I have found the header that has the error. The mail.php page is not encrypted, but the registration page is and the author will not un encrypt it for me to fix the problem. And the author isn’t that great at support.
I need someone to work some type of workaround. My host is godaddy.com. I’m fine with using something other then mail(), relay, or even smtp.
Below is the mail.php (original from author) file that does the emails. I can get the email to send by removing $text and changing rn to just r.
—-mail.php
<?
function send_html($from, $to, $subject, $text, $html)
{
global $debug;
if ($debug) echo “<HR>DEBUG|From:$from|To:$to|Subject:$subject<HR>$text<HR>$html<HR>”;
$headers = “From: $fromrn”;
$headers .= “Reply-To: $fromrn”;
$headers .= “X-Mailer: PHP/” . phpversion().”rn”;
$headers .= “MIME-Version: 1.0rn”;
$boundary = uniqid(“MAB”);
$headers .= “Content-Type: multipart/alternative” .
“; boundary = $boundaryrnrn”;
$headers .= “$textrnrn”;
$headers .= “–$boundaryrn” .
“Content-Type: text/plain; charset=ISO-8859-1rn” .
“Content-Transfer-Encoding: base64rnrn”;
$headers .= chunk_split(base64_encode(“$text”));
$headers .= “–$boundaryrn” .
“Content-Type: text/html; charset=ISO-8859-1rn” .
“Content-Transfer-Encoding: base64rnrn”;
$headers .= chunk_split(base64_encode(“$html”));
mail($to, $subject, “”, $headers);
}
function parse_mail($mail, $param)
{
foreach ($param as $key=>$val)
$mail=str_replace(“#”.$key.”#”,$val,$mail);
return $mail;
}
?>