cancel
Showing results for 
Search instead for 
Did you mean: 

User invite to new site Mail Template

gpkoch
Champ in-the-making
Champ in-the-making
Hello want to find out how to change the link in the invite being send to user.
Want to change it to our external link.
8 REPLIES 8

enkidu
Champ in-the-making
Champ in-the-making
u have to change share.host=ur_external_link in alfresco.properties.

gpkoch
Champ in-the-making
Champ in-the-making
Hi is this in the alfresco-global properties?

mitpatoliya
Star Collaborator
Star Collaborator
You can find the email templates under Data Dictionary> Email Templates
If you edit it changes will be reflected in mail.

gpkoch
Champ in-the-making
Champ in-the-making
Hi is it under this template? invite-email.html
And when I edit it I can see what it say if you want to accept this click on link.
But there is no link off my server in the html?

mitpatoliya
Star Collaborator
Star Collaborator
Did not get you. You mean to say you are not able to edit it?
There are actually many ftl files you need to find the one which is used in your invitation mail.

gpkoch
Champ in-the-making
Champ in-the-making
Yes there is different files but its different languages.
When I open the English one I cant find what I must edit. I don't see my server IP or name for the link you suppose to click on. Please see the file below

<html>
   <#assign inviterPersonRef=args["inviterPersonRef"]/>
   <#assign inviterPerson=companyhome.nodeByReference[inviterPersonRef]/>
   <#assign inviteePersonRef=args["inviteePersonRef"]/>
   <#assign inviteePerson=companyhome.nodeByReference[inviteePersonRef]/>

   <head>
      <style type="text/css"><!–
      body
      {
         font-family: Arial, sans-serif;
         font-size: 14px;
         color: #4c4c4c;
      }
     
      a, a:visited
      {
         color: #0072cf;
      }
      –></style>
   </head>
  
   <body bgcolor="#dddddd">
      <table width="100%" cellpadding="20" cellspacing="0" border="0" bgcolor="#dddddd">
         <tr>
            <td width="100%" align="center">
               <table width="70%" cellpadding="0" cellspacing="0" bgcolor="white" style="background-color: white; border: 1px solid #aaaaaa;">
                  <tr>
                     <td width="100%">
                        <table width="100%" cellpadding="0" cellspacing="0" border="0">
                           <tr>
                              <td style="padding: 10px 30px 0px;">
                                 <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                       <td>
                                          <table cellpadding="0" cellspacing="0" border="0">
                                             <tr>
                                                <td>
                                                   <img src="${shareUrl}/res/components/site-finder/images/site-64.png" alt="" width="64" height="64" border="0" style="padding-right: 20px;" />
                                                </td>
                                                <td>
                                                   <div style="font-size: 22px; padding-bottom: 4px;">
                                                      You have been invited to join the '${args["siteName"]}' site
                                                   </div>
                                                   <div style="font-size: 13px;">
                                                      ${date?datetime?string.full}
                                                   </div>
                                                </td>
                                             </tr>
                                          </table>
                                          <div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;">
                                             <p>Hi ${inviteePerson.properties["cm:firstName"]!""},</p>
     
                                             <p>${inviterPerson.properties["cm:firstName"]!""} ${inviterPerson.properties["cm:lastName"]!""}
                                             has invited you to join the <b>${args["siteName"]}</b> site with the role of ${args["inviteeSiteRole"]}.</p>
                                            
                                             <p>Click this link to accept ${inviterPerson.properties["cm:firstName"]!""}'s invitation:<br />
                                             <br /><a href="${args["acceptLink"]}">${args["acceptLink"]}</a></p>
                                            
                                             <#if args["inviteeGenPassword"]?exists>
                                             <p>An account has been created for you and your login details are:<br />
                                             <br />Username: <b>${args["inviteeUserName"]}</b>
                                             <br />Password: <b>${args["inviteeGenPassword"]}</b>
                                             </p>
                                            
                                             <p><b>We strongly advise you to change your password when you log in for the first time.</b><br />
                                             You can do this by going to <b>My Profile</b> and selecting <b>Change Password</b>.</p>
                                             </#if>
                                            
                                             <p>If you want to decline ${inviterPerson.properties["cm:firstName"]!""}’s invitation, click this link:<br />
                                             <br /><a href="${args["rejectLink"]}">${args["rejectLink"]}</a></p>
                                            
                                             <p>Sincerely,<br />
                                             Alfresco ${productName!""}</p>
                                          </div>
                                       </td>
                                    </tr>
                                 </table>
                              </td>
                           </tr>
                           <tr>
                              <td>
                                 <div style="border-top: 1px solid #aaaaaa;"> </div>
                              </td>
                           </tr>
                           <tr>
                              <td style="padding: 0px 30px; font-size: 13px;">
                                 To find out more about Alfresco ${productName!""} visit <a href="http://www.alfresco.com">http://www.alfresco.com</a>
                              </td>
                           </tr>
                           <tr>
                              <td>
                                 <div style="border-bottom: 1px solid #aaaaaa;"> </div>
                              </td>
                           </tr>
                           <tr>
                              <td style="padding: 10px 30px;">
                                 <img src="${shareUrl}/themes/default/images/app-logo.png" alt="" width="117" height="48" border="0" />
                              </td>
                           </tr>
                        </table>
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
      </table>
   </body>
</html>

kaynezhang
World-Class Innovator
World-Class Innovator
You can implemente your requirement by  customizing file
app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.html.ftl

gpkoch
Champ in-the-making
Champ in-the-making
Thank you. yes I see its in HTML code. Now I need to figure that out lol. I don't know html or any web coding