I have a working script but when the email gets there It does not convert the html into a hyperlink, I know that it's something small that I have missed.
Krys
Code below:
<?php
//email_functions.inc.php
//this file contains the functions for emailing specific requests to individuals who need to take action on a spark trial,
//to include the direct link and auto-login information to the stage and trial they need to access.'
$iso_pm="user@locale.com";
$trial_number="1234";
$iso_pm_link="localhost/test/update.php?trial_number=1234&stage=6&contact=user@locale.com";
$spm_name="test spm";
$spm_phone="555-555-5555";
$spm_email="tspm@demo.locale.com";
$message="There is a SparkTrial action item requiring your attention. Please click on the following hyperlink to access the specific information needing your attention. <a href=\"$iso_pm_link\">Access Action Item<\/a> You will be able to review the record fo the trial information but not able to make any changes other than those indicated. for further assistance or questions on this issue please contact your regional SPM $spm_name at $spm_email or $spm_phone.";
ISO_PM($iso_pm,$trial_number,$message,$iso_pm_link,$spm_name,$spm_email,$spm_phone);
function ISO_PM($iso_pm,$trial_number,$message,$iso_pm_link,$spm_name,$spm_email,$spm_phone) {
mail("$iso_pm", "SparkTrial record $trial_number action item.", $message,
"From: sparktrial@{$SERVER['SERVER_NAME']}\r\n" .
"Reply-To: sparktrial@{$SERVER['SERVER_NAME']}\r\n" .
"X-Mailer: PHP/" . phpversion());
}
?>