I need the experts help please...
I have a current yellow pages scripts that has an email confirmation function. My host requires smtp authentication and the current script does not allow it. The script looks like this:
function sendmail($to,$subject,$message,$sender,$from) {
$mailheaders = "From:$sender<$from>\n";
$mailheaders = "Reply-To: $sender\n\n";
mail($to,$subject,$message,$mailheaders);
}
What do i need to add to ensure the smtp authentication?
Many thanks!
Monre