Jump to content

url pass tags to email


damerit

Recommended Posts

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,

Link to comment
Share on other sites

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>';
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.