Skip to content

Commit

Permalink
Added {TOKEN} as a replacement string when sending emails
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1129 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 18, 2004
1 parent 4187bba commit e136178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/tokens.php
Expand Up @@ -681,6 +681,7 @@
$sendmessage = str_replace("{FIRSTNAME}", $emrow['firstname'], $sendmessage);
$sendmessage = str_replace("{LASTNAME}", $emrow['lastname'], $sendmessage);
$sendmessage = str_replace("{SURVEYURL}", "$publicurl/index.php?sid=$sid&token={$emrow['token']}", $sendmessage);
$sendmessage = str_replace("{TOKEN}", $emrow['token'], $sendmessage);
if (isset($emrow['attribute_1']))
{
$sendmessage = str_replace("{ATTRIBUTE_1}", $emrow['attribute_1'], $sendmessage);
Expand Down Expand Up @@ -855,6 +856,7 @@
$sendmessage = str_replace("{SURVEYURL}", "$publicurl/index.php?sid=$sid&token={$emrow['token']}", $sendmessage);
$sendmessage = str_replace("{ATTRIBUTE1}", $emrow['attribute_1'], $sendmessage);
$sendmessage = str_replace("{ATTRIBUTE2}", $emrow['attribute_2'], $sendmessage);
$sendmessage = str_replace("{TOKEN}", $emrow['token'], $sendmessage);
$sendmessage=crlf_lineendings($sendmessage);
// Uncomment the next line if your mail clients can't handle emails containing <CR><LF>
// line endings. This converts them to just <LF> line endings. This is not correct, and may
Expand Down

0 comments on commit e136178

Please sign in to comment.