Pc-Gamer
03-10-2004, 11:31 AM
I have saw other threads about this and still haven't found my answer. I have submitted a ticket to HR but want to get this resolved ASAP.
I have been using this script on HostRocket since July 2002. It has worked fine in the past but now it will not send email out. I am assuming that HR has update PHP and maybe I need to alter the script a bit. Here is a little snippet of the script:
//SEND EMAIL FROM LOCAL HOST
function sendmail_local($toname, $toemail, $emailsubject, $emailbody){
global $email, $site;
$subject="$site[shortname] $emailsubject";
$body="$emailbody\n\n$site[longname]\n$site[homeurl]\n";
$fromname="$site[shortname]";
$fromemail="$email[sendaccount]";
$replyname="$site[shortname]";
$replyemail="$email[genhelp]";
mail("$toname <$toemail>","$subject","$body", "From: $fromname <$fromemail>\nReply-To: $replyname <$replyemail>\nContent-type: text/plain\nX-Mailer: PHP/" . phpversion());
}
I would appreciate any help.
Thanks
Mike
I have been using this script on HostRocket since July 2002. It has worked fine in the past but now it will not send email out. I am assuming that HR has update PHP and maybe I need to alter the script a bit. Here is a little snippet of the script:
//SEND EMAIL FROM LOCAL HOST
function sendmail_local($toname, $toemail, $emailsubject, $emailbody){
global $email, $site;
$subject="$site[shortname] $emailsubject";
$body="$emailbody\n\n$site[longname]\n$site[homeurl]\n";
$fromname="$site[shortname]";
$fromemail="$email[sendaccount]";
$replyname="$site[shortname]";
$replyemail="$email[genhelp]";
mail("$toname <$toemail>","$subject","$body", "From: $fromname <$fromemail>\nReply-To: $replyname <$replyemail>\nContent-type: text/plain\nX-Mailer: PHP/" . phpversion());
}
I would appreciate any help.
Thanks
Mike