damerit Posted October 1, 2008 Share Posted October 1, 2008 Description: The variable $chkemail is assigned email addresses and $fccmail is tied to a mailto tag that initiates when a button is pressed. Problem: I have tried modifying the code below to handle html in the message but if fails. I have used content-type, mime_boundary, and I get nothing. Question: How can I modify the content below to accept html tags of <b><i> and <color>? What significance does the 'body' name hold below? If I change the body name the code will break. *Realize that this is all an url* $fccmail=$chkemail."?importance=High&subject=Update:".$notifTsubj." ".rawurlencode($row_Record['callerCustomer'])." - ".$row_Record['callerCity'].", ".$row_Record['callerStateProv']." - ".$row_Record['Type']." - ".$row_Record['system']."&" ."body=Problem: ".$checkNotif. " Report" ."%0A%0ACustomer: ".rawurlencode($row_Record['callerCustomer']) ."%0ALocation: ".$row_Record['callerCity'].", ".$row_Record['callerStateProv'].", ".$row_Record['callerCountry'] ."%0ARecord: ".$row_Record['ID'] ."%0ADate: ".date ("m/d/Y") ."%0AProblem: "; Thank you, Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted October 1, 2008 Share Posted October 1, 2008 Where does it say mail? or anything like that, please put the code in tags Quote Link to comment Share on other sites More sharing options...
damerit Posted October 1, 2008 Author Share Posted October 1, 2008 The mailto link is called in the if statement. $fccmail=$chkemail."?importance=High&subject=Update:".$notifTsubj." ".rawurlencode($row_Record['callerCustomer'])." - ".$row_Record['callerCity'].", ".$row_Record['callerStateProv']." - ".$row_Record['Type']." - ".$row_Record['system']."&" ."body=Problem: ".$checkNotif. " Report" ."%0A%0ACustomer: ".rawurlencode($row_Record['callerCustomer']) ."%0ALocation: ".$row_Record['callerCity'].", ".$row_Record['callerStateProv'].", ".$row_Record['callerCountry'] ."%0ARecord: ".$row_Record['ID'] ."%0ADate: ".date ("m/d/Y") ."%0AProblem: "; if((isset($notifType)) && $notifType != 'WZW'){ $mail = '<tr bgcolor="#930000"><td ALIGN="center" nowrap colspan="4"><font COLOR="#003366" SIZE="3"><strong><a CLASS="gwwhite" href="mailto:'.$fccmail.'"><b><font color="#FFFFFF" size="+1">Send Notification......</font></b></a></strong></font></td></tr>'; } else{ $mail = '<tr bgcolor="#930000"><td ALIGN="center" nowrap colspan="4"><font COLOR="#003366" SIZE="3"><strong><a CLASS="gwwhite" href="mailto:'.$chkemail."?Importance=2&subject=Outage&body=".$boxmail.'"><b><font color="#FFFFFF" size="+1">Send Alert Notification......</font></b></a></strong></font></td></tr>'; } Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted October 1, 2008 Share Posted October 1, 2008 hang on, what do you want to do? send an email or have a mail to link, and I don't think its possible to have HTML code in the link its self, not that there is a reason to , rephrase the question more clearly Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.