Hi all change my ss.inc.php e-mail notification to give some styling
[Code]
$msg = '
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional //EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>TwitterRooms</title></head>
<body style="margin: 0; padding: 0;" dir="ltr">
<table width="98%" border="0" cellspacing="0" cellpadding="40">
<tr>
<td bgcolor="#f7f7f7" width="100%" >
<table cellpadding="0" cellspacing="0"border="0" width="620">
<tr>
<td style="background: #3b5998; color:#FFFFFF; font-weight: bold; padding: 4px 8px; vertical-align: middle; font-size:16px; letter-spacing: -0.03em; border-right: 8px groove lightblue;
border-left: 8px groove lightblue;border-top: 8px groove lightblue; text-align: left;">TwitterRooms</td>
</td>
</tr>
<tr>
<td colspan="2" style="background-color:#FFFFFF; border-bottom: 8px groove lightblue; border-left: 8px groove lightblue; border-right: 8px groove lightblue; padding: 15px;" valign="top">
<table width="100%"><tr><td width="440px" style="font-size: 12px;" valign="top" align="left">
<div style="margin-bottom: 15px;font-size: 13px;">Hello, </div>
<div style="margin-bottom:15px;">%fullname% has commented on TwitterRooms post.</div>
<div style="margin-bottom: 15px;">
<div style="border-bottom: 1px solid #ccc; line-height:5px;"> </div>
<div style="margin-bottom:15px;">%message%<p>%post%</div>
<br/>
</div>
<div style="margin-bottom: 15px; margin: 0;">Thanks,<br /><a href="[url]http://twitterrooms.co.uk"[/url] style"text-decoration:none;">TwitterRooms</a></div>
</td></tr>
</table>
<br /></td></tr><tr>
<td style="color: #999999; padding: 10px; font-size: 11px; ">TwitterRooms is created for FUN.....</td></tr></table></td>
</tr>
</table>
</body></html>
';
[/code]
but the next line puts the comment in the notifications area only
problem is it puts all the styling in to how can i make it just
display the comment not the styling
[Code]
send_note($stream['uid'],'$msg');
$msg = str_replace('%fullname%',$client['fullname'],$msg);
$msg = str_replace('%message%',h(utf8_substr($_POST['message'],50)),$msg);
$msg = str_replace('%post%',h(utf8_substr($_POST['streams'],50)),$msg);
mail_notice('stream_comment',
$stream['username'],
t('{1} has commented',$client['username']),
$msg );
[/code]
|