email templates

From CashCrusaderWiki

(Difference between revisions)
Jump to: navigation, search
(Defaults)
(Examples)
Line 1: Line 1:
{{DISPLAYTITLE:Email Templates}}
{{DISPLAYTITLE:Email Templates}}
 +
 +
== Variables ==
 +
Email templates are customized from ''/scripts/conf.inc.php''. The templates for signup confirmation, signup details and email address change supports following variables. Variables are enclosed with < and > characters, like <SITE_NAME>:
Email templates are customized from ''/scripts/conf.inc.php''. The templates for signup confirmation, signup details and email address change supports following variables. Variables are enclosed with < and > characters, like <SITE_NAME>:
Line 130: Line 133:
-
'''Default templates'''
+
== Default templates ==
-
<CODE>
+
<pre>
$login_info_message="
$login_info_message="
Line 138: Line 141:
<PAGES_URL>
<PAGES_URL>
";
";
 +
 +
$confirm_info_subject="<SITE_NAME> signup URL";
$confirm_info_subject="<SITE_NAME> signup URL";
 +
 +
$confirm_info_message="
$confirm_info_message="
This information was submitted at <TIME> from IP/PROXY: <IPPROXY>. If you didn't submit your email at that time and that IP address isn't yours, then please send the email with headers to <SUPPORT_EMAIL> and disreguard the signup email. This site operates on a double opt-in procedure which requires you to continue the signup process before you receive any more emails. This will be the last email you will receive from <SITE_NAME> unless someone submits your email address once more. If this happens please contact <SUPPORT_EMAIL> with your email address and it can be blocked so you don't receive any in the future.
This information was submitted at <TIME> from IP/PROXY: <IPPROXY>. If you didn't submit your email at that time and that IP address isn't yours, then please send the email with headers to <SUPPORT_EMAIL> and disreguard the signup email. This site operates on a double opt-in procedure which requires you to continue the signup process before you receive any more emails. This will be the last email you will receive from <SITE_NAME> unless someone submits your email address once more. If this happens please contact <SUPPORT_EMAIL> with your email address and it can be blocked so you don't receive any in the future.
Line 144: Line 151:
To complete your signup with please follow this url:
To complete your signup with please follow this url:
-
<PAGES_URL>signup.php?CO=<CODE&gt;&EM=<EMAIL>
+
<PAGES_URL>signup.php?CO=<CODE>;&EM=<EMAIL>
-
<a href=<PAGES_URL>signup.php?CO=<CODE&gt;&EM=<EMAIL>>AOL Users</a>
+
<a href=<PAGES_URL>signup.php?CO=<CODE>&EM=<EMAIL>>AOL Users</a>
";
";
 +
 +
$signup_info_subject="<SITE_NAME> Member Info";
$signup_info_subject="<SITE_NAME> Member Info";
 +
 +
$signup_info_message="
$signup_info_message="
Welcome to <SITE_NAME>
Welcome to <SITE_NAME>
Line 162: Line 173:
<SUPPORT_EMAIL>
<SUPPORT_EMAIL>
";
";
 +
$verification_info_subject="Email address change for <SITE_NAME>";
$verification_info_subject="Email address change for <SITE_NAME>";
 +
$verification_info_message="
$verification_info_message="
Line 172: Line 185:
To complete your email address update please follow this url:
To complete your email address update please follow this url:
-
<PAGES_URL>userinfo.php?verification=<CODE&gt;&email=<EMAIL>&username=$_SESSION[username]
+
<PAGES_URL>userinfo.php?verification=<CODE>&email=<EMAIL>&username=$_SESSION[username]
-
<a href=<PAGES_URL>userinfo.php?verification=<CODE&gt;&email=<EMAIL>&username=$_SESSION[username]>HTML Link</a>
+
<a href=<PAGES_URL>userinfo.php?verification=<CODE>;&email=<EMAIL>&username=$_SESSION[username]>HTML Link</a>
";
";
-
</CODE>
+
 
 +
 
 +
</pre>>
[[Category:Customize]]
[[Category:Customize]]

Revision as of 15:48, 1 May 2010


Variables

Email templates are customized from /scripts/conf.inc.php. The templates for signup confirmation, signup details and email address change supports following variables. Variables are enclosed with < and > characters, like <SITE_NAME>:

VariableDescription

SITE_NAME

Site's name

TIME

Current time

IPPROXY

IP or proxy IP of the visitor

SUPPORT_EMAIL

Site's support email address

PAGES_URL

Site's pages URL

CODE

Code to verify signup

EMAIL

Email address to signup from or change to

USERNAME

Username of the account [password reset only]

PASSWORD

Password of the account [password reset only]

$_SESSION['username']

General variable for username of the account

edit table


Templates are saved in following PHP variables:

VariableDescription

$login_info_subject

login details reset email subject

$login_info_message

login details reset email content

$confirm_info_subject

email confirmation subject during signup

$confirm_info_message

email confirmation content during signup

$signup_info_subject

signup details subject for new account

$signup_info_message

signup details subject for new account

$verification_info_subject

email address change subject for exiting accounts

$verification_info_message

email address change content for exiting accounts

edit table

Notice that support for email address verification email template customization was added to CashCrusader 2.20.


Default templates


$login_info_message="
Your login username is <USERNAME>
Your new password is <PASSWORD>
<PAGES_URL>
";


$confirm_info_subject="<SITE_NAME> signup URL";


$confirm_info_message="
This information was submitted at <TIME> from IP/PROXY: <IPPROXY>. If you didn't submit your email at that time and that IP address isn't yours, then please send the email with headers to <SUPPORT_EMAIL> and disreguard the signup email. This site operates on a double opt-in procedure which requires you to continue the signup process before you receive any more emails. This will be the last email you will receive from <SITE_NAME> unless someone submits your email address once more. If this happens please contact <SUPPORT_EMAIL> with your email address and it can be blocked so you don't receive any in the future.

To complete your signup with  please follow this url:

<PAGES_URL>signup.php?CO=<CODE>;&EM=<EMAIL>

<a href=<PAGES_URL>signup.php?CO=<CODE>&EM=<EMAIL>>AOL Users</a>
";


$signup_info_subject="<SITE_NAME> Member Info";


$signup_info_message="
Welcome to <SITE_NAME> 
Your login username is <USERNAME>
Your login password is <PASSWORD>

You can login by going to 

<PAGES_URL>

if you need help email

<SUPPORT_EMAIL>
";


$verification_info_subject="Email address change for <SITE_NAME>";


$verification_info_message="
This information was submitted at <TIME> from IP/PROXY: <IPPROXY>. If you didn't submit your email at that time and that IP address isn't yours, then please send the email with headers to <SUPPORT_EMAIL> and disregard this email. 
    
This site operates on a double opt-in procedure which requires you to confirm email address before you receive any more emails. This will be the last email you will receive from <SITE_NAME> unless someone submits your email address once more. If this happens please contact <SUPPORT_EMAIL> with your email address and it can be blocked so you don't receive any in the future.
    
To complete your email address update please follow this url:
    
<PAGES_URL>userinfo.php?verification=<CODE>&email=<EMAIL>&username=$_SESSION[username]
    
<a href=<PAGES_URL>userinfo.php?verification=<CODE>;&email=<EMAIL>&username=$_SESSION[username]>HTML Link</a>
";


>
Personal tools
Administration manual