Mail Message Syntax

Article Contents:

 

Extranet mail messages generate dynamic content using the Velocity Template Engine (NVelocity version). Velocity Template Language (VTL) syntax may be used to include loops, conditions and other dynamic constructs into mail message content. Learn more about the velocity syntax from the Velocity User Guide.

 

 

Invitation Mail Definitions

Default Invitation Email:

 

You have been invited to register for access to the '$invitationWeb.Title' site

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
 <head>
   <title>Invitation</title>
 </head>
 <body>
 <div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
 <p>
 $invitationInfo.Email,
 </p>
 <p>
 You have been invited to register for access to the <a href="$invitationWebUri.AbsoluteUri">$HttpUtility.HtmlEncode($invitationWeb.Title)</a> site.
 To complete the registration, simply click the link below.
 </p>
 <p>
   <a href="$registerUri.AbsoluteUri">Register</a>
 </p>
 <p>
   $!{mailSettings.GlobalSignature}
 </p>
 </div>
</body>
</html>

 

Registration Accepted Mail Definitions

Default Registration Accepted Email:

 

You have successfully registered for access to the '$web.Title' site

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
 <head>
   <title>Registration Accepted</title>
 </head>
 <body>
   <div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
   <p>
   $registrationItem.AccountName,
   </p>
   <p>
   Your registration to the <a href="$invitationSiteUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site has been accepted.
   Your registration information is being reviewed.
   You will be notified when the review process has been completed.
   </p>
    <p>
    <strong>Registration Information</strong>
    <blockquote>

             Account Name : $registrationItem.AccountName <br /><br />
     E-mail : $registrationItem.Email <br /><br />

     ## Show each field answer
     #foreach($fieldAnswer in $registrationItem.FieldAnswers)

       #each
         #if (!$Strings.IsNullOrEmpty($fieldAnswer.FieldDisplayName))
           $fieldAnswer.FieldDisplayName : $!{fieldAnswer.Value} <br /><br />
         #end
     #end
   </blockquote>
   </p>
   <p>
   $!{mailSettings.GlobalSignature}
   </p>
   </div>
 </body>
</html>

 

Registration Approved Mail Definitions

Default Registration Approved Email:

 

Your registration to the '$web.Title' site has been approved

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
 <head>
   <title>Registration Approved</title>
 </head>
 <body>
   <div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
   <p>
   $registrationItem.AccountName,
   </p>
   <p>
   Your access to the <a href="$registrationWebUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site has been approved.
   </p>
   <p>
   <strong>Registration Information</strong>
   <blockquote>

     ## Show account info
     Account Name : $registrationItem.AccountName <br /><br />
     E-mail : $registrationItem.Email <br /><br />
                   
                   ## Show each field answer
                   #foreach($fieldAnswer in $registrationItem.FieldAnswers)
                   #each
                   #if (!$Strings.IsNullOrEmpty($fieldAnswer.FieldDisplayName))
                   $fieldAnswer.FieldDisplayName : $!{fieldAnswer.Value} <br /><br />
                   #end
                   #end
   </blockquote>
   </p>
   <p>
   To access the '$web.Title' site, simply click link below and provide your login credentials.
   </p>
   <p>
   <a href="$registrationWebUri.AbsoluteUri">Login</a></p>
   <p>
   $!{mailSettings.GlobalSignature}
   </p>
</div>
</body>
</html>

Registration Denied Mail Definitions

Default Registration Denied Email:

 

Your registration to the '$web.Title' site has been denied

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Registration Denied</title>
</head>
<body>
<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
    <p>
    $registrationItem.AccountName,
    </p>
    <p>
    Your access to the <a href="$registrationWebUri.AbsoluteUri">$HttpUtility.HtmlEncode($registrationWeb.Title)</a> site has been denied. 
    </p>
    <p>
    <strong>Registration Information</strong>
    <blockquote>
    
      ## Show account info
      Account Name : $registrationItem.AccountName <br /><br />
      E-mail : $registrationItem.Email <br /><br />
      
      ## Show each field answer
      #foreach($fieldAnswer in $registrationItem.FieldAnswers)
        #each
          #if (!$Strings.IsNullOrEmpty($fieldAnswer.FieldDisplayName))
            $fieldAnswer.FieldDisplayName : $!{fieldAnswer.Value} 
          #end
      #end
      
    </blockquote>
    </p>
    <p>
    $!{mailSettings.GlobalSignature}
    </p>
</div>
</body>
</html></value>

 

Password Reset Mail Definitions

Default Password Reset Email:

Your account password for the '$web.Title' site has been reset.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head>

<title>Password Reset</title>

</head>

<body>

<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">

    <p>

    $extranetUser.Email,

    </p>

    <p>

    Your account password for the '$web.Title' site has been reset.

    </p>

    

    #if($passwordResetTemplate == $ExtranetPasswordResetTemplates_EmailGeneratedPassword)

<p>

    Your new password is '${generatedPassword}'.

    </p>

  <p>

   To access the '$web.Title' site, simply click the link below and provide your login credentials. 

</p>

   <p>

   <a href="$webUri.AbsoluteUri ">Login</a>

</p>

#end

    <p>

    $!{mailSettings.GlobalSignature}

    </p>

</div>

</body>

</html>

 

 

 Account Welcome Email

 

Default Account Welcome Email:

 

 

Welcome to '$web.Title' site

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Account Welcome</title>
</head>
<body>
<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
    <p>
    $extranetUser.Email,
    </p>
    <p>
    An account has been created for you on the '$web.Title' site.
    </p>
   
    <p>
    username: ${extranetUser.AccountName}<br />
    password: ${password}
    </p>
   
    <p>
    $!{comment}
    </p>
   
    <p>
    Please login to the site and change your password.
    </p>
   
    <p>
    <a href="$webUri.AbsoluteUri">Login</a>
    </p>
   
    <p>
    $!{mailSettings.GlobalSignature}
    </p>
     
</div>
</body>
</html>

 

Account Activity Expiration Email

 

Default Account Activity Expiration Email:

 

Your account with '$web.Title' site has expired

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Account Activity Expiration</title>
</head>
<body>
<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
    <p>
    $extranetUser.Email,
    </p>
    <p>
    Your account on the <a href="$webUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site expired on $accountActivityExpirationDate.ToString("d") and is now inactive.
    </p>
    <p>
    $!{mailSettings.GlobalSignature}
    </p>
</div>
</body>
</html>

Account Activity Expiration Approaching Email

Default Account Activity Expiration Approaching Email:

 

Your account expiration to the '$web.Title' site is approaching

 

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Account Activity Expiration Approaching</title>
</head>
<body>
<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
    <p>
    $extranetUser.Email,
    </p>
    <p>
    Your account on the <a href="$webUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site is set to expire on $accountActivityExpirationDate.ToString("d").
    </p>
    <p>
      Follow the steps below to avoid expiration.
      <ol>
        <li>Navigate to the the <a href="$webUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site. </li>
        <li>Login with your account name and password. </li>
      </ol>
    </p>
    <p>
    $!{mailSettings.GlobalSignature}
    </p>
</div>
</body>
</html>

 

Password Expiration Email

Default Password Expiration Email:

 

 Your account password to the '$web.Title' site has expired

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head> 
<title>Password Expiration</title> 
</head> 
<body> 
<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
</data> 
<data name="Mail_PasswordExpiration_Body" xml:space="preserve"> <value><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd<p> $extranetUser.Email, </p> 
<p> The password for your account on the <a href="$webUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site expired on $passwordExpirationDate.ToString("d"). Visit the <a href='${webUri.AbsoluteUri}/_layouts/15/SPSolutions/ExCM/ChangeMyPassword.aspx'>Change My Password</a> page to create a new password. </p> 
<p> $!{mailSettings.GlobalSignature} </p></value> 
</data> 
<data name="Mail_PasswordExpiration_Subject" xml:space="preserve"> <value>Password Expiration 
</data>
</p>
   </div>
 </body>
</html>

Password Expiration Approaching Email

Default Password Expiration Approaching Email:

 

  Your password expiration to the '$web.Title' site is approaching

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > 
<head> 
<title> Password Expiration Approaching </title> 
</head> 
<body> <div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px"><p> $extranetUser.Email,, </p> 
<p> The password for your account on the <a href="$webUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site is set to expire on $passwordExpirationDate.ToString("d"). </p> 
<p> Follow the steps below to avoid expiration. <ol> 
<li>Login to the <a href="$webUri.AbsoluteUri">$HttpUtility.HtmlEncode($web.Title)</a> site with your current account name and password.</li> 
<li>Select <b>Change My Password</b> from the drop-down menu attached to your User Name.</li> 
<li>Complete the change password form.</li> 
</ol> </p> 
<p> $!{mailSettings.GlobalSignature} </p>
</data> 
<data name="Mail_PasswordExpirationApproaching_Subject" xml:space="preserve"> Password Expiration Approaching</data>
</p>
   </div>
 </body>
</html>

 

 

Authorization Code Email

 

'$web.Title'Authorization Code

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Authorization Code</title>
</head>
<body>
<div style="margin-right:auto; margin-left:auto; width:650px; padding:25px; background-color: #f6f6f6; color:#333333; font-family:Verdana; font-size:14px">
    <p>
    $extranetUser.Email,
    </p>
    <p>
    The authorization code you requested for access to the '$web.Title' site is below. Enter this code on the sign in page along with your user name and password to complete the login process. 
    </p>
    <p>
    Code: <b>;${authorizationCode}</b><br />
    </p>
    <p>
    $!{mailSettings.GlobalSignature}
    </p>
</div>
</body>
</html>

 

 

 

©2019 PremierPoint Solutions. All Rights Reserved. 

Create your own Knowledge Base