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
https://forums.phpfreaks.com/topic/126654-url-pass-tags-to-email/
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>';
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.