Customizing ExCM's Mail Messages

ExCM uses a template-based mail messaging system and provides four automated messages “out of the box:”. ExCM's default mail messages can be customized by using the Mail Message Syntax.

Extranet Collaboration Manager email templates - out of the box
 

Each message is completely customizable if you desire (sometimes the defaults are sufficient for the needs of many of our customers).

 

Here is how the Invitation Message appears to an invitee. Notice the default hyperlinks: 
 

Extranet Collaboration Manager invitation message
 

 

The first link (“ACME” in this case) is simply a link to the site itself, and the name is generated from the title given during the initial creation within Central Administration.
 
The second link takes the user to the actual registration page where they can enter their information:

 

Extranet Collaboration Manager invitation registration page
 

 

We’ve all been guilty from time to time of not “reading the manual” thoroughly…especially in the IT world. :)  Let’s assume for this post that the user receives the invitation and is so excited to join an ExCM-powered extranet site that they click the first link instead of the “Register” link.  Unless the root level site were anonymously accessible, they would be taken to the Sign In page for the site:

 

Extranet Collaboration Manager sign in page
 

 

Since they have not yet created an account, they obviously cannot sign in. Also, because we are not allowing Anonymous Registration for this site, there is no link directly to the registration page available. Frustration sets in, and the user never follows through with their dream of becoming a registered user of your extranet site.

 

Of course, this all could have been avoided if the invitee had just “read the manual” (or email in this case).  So how can we prevent further dreams from being crushed in the future?  By creating a custom template for the Invitation Mail Message that removes the hyperlink (which is what the rest of this article is about, but if you wanted to do more customization and branding of your email messages, the steps would be very similar).

 

The first thing we need to do is create a new "Mail Definitions" list that contains the customized template. To do this, we need to navigate to Site Actions – Add an app:

 

SharePoint Add an app
 

From there, we select “Mail Definitions” and give the new list a name:

 

SharePoint Adding Mail Definitions
 

 

After clicking “Create,” we are taken to the new list. Now we select the new "ExCM Mail Definitions".  
 
Extranet Collaboration Manager ExCM Mail Definition
 
Then from the ribbon select "Items" then “New Item” from the menu:

 

SharePoint New Item on the ExCM Mail Definition list
 

 

Now we need to give our new template a name, mail subject, and mail body. The first two are self-explanatory, but the mail body itself needs to be in HTML format. Here is a sample of the existing Invitation Mail Message found in the Reference section of this documentation:

 

Extranet Collaboration Manager HTML for Invitation Mail Message
 

 

I am going to copy and paste that section into Notepad so we can take a closer look at the edits we need to make. In this scenario, I am looking for the following value:

 

"<a href="$invitationWebUri.AbsoluteUri">$HttpUtility.HtmlEncode($invitationWeb.Title)</a>"

 

Extranet Collaboration Manager HTML Mail Invitation editing
 

 

I am just going to replace the entire reference with regular text so that it will now read:

 

“…the best ExCM-powered Extranet site on the planet!”

 

Extranet Collaboration Manager HTML Mail Invitation editing
 

 

After that, I copy and paste our text from the Notepad file into the mail body area for the template:

 

SharePoint creating new email item
 

 

After clicking “Save,” we can now see that our new template has been successfully created:

 

SharePoint Custom ExCM Invitation list
 

 

Now, let’s use this new template for our ExCM invitations. We'll navigate to Site Actions – Site Settings and select “Mail Settings” from the ExCM management menu. From there, we'll select the “Invitation” message under “Mail Messages:”

 

Extranet Collaboration Manager Invitation email settings
 

 

In the middle of the pop-up window, we need to select “Use Custom Template” and select the one we just created and click “Save:”

 

Edit Extranet Collaboration Manager Mail Message Settings
 

 

We can now see that the Invitation Mail Message is using our custom template:

 

Extranet Collaboration Manager Mail Settings for the Invitation
 

 

Now, let’s test it out. After inviting our user and opening the email, we now see this:

 

Extranet Collaboration Manager new invitation email message
 

 

Our custom template is now working and we have prevented future invitees from despair!

 

Of course, you can get MUCH more detailed in the customization of your messages. You can use HTML to change the colors and fonts, include graphics, etc. Regardless of complexity, however, the process remains the same.
 
 
 
©2019 PremierPoint Solutions. All Rights Reserved. 
 
 
Create your own Knowledge Base