Template notification e-mail create username

cancel
Showing results for 
Search instead for 
Did you mean: 
jbrasil
Active Member II

Template notification e-mail create username

Can you get a template to send email at the time of creating the user?
Thanks a lot.
Zé Brasil

5 Replies
jljwoznica
Senior Member

Re: Template notification e-mail create username

I am not quite sure I understand this question. Do you want to send a notification email to someone when a new Alfresco Content user is created?

jbrasil
Active Member II

Re: Template notification e-mail create username

That's right.
Thanks.

abhinavmishra14
Advanced

Re: Template notification e-mail create username

If i understand correctly, you are looking for email template to send notification to new user after their account is created in Alfresco. 

I would recommend to look at the OOTB email templates here:  Repository> Data Dictionary> Email Templates

http://<host>:<port>/share/page/repository#filter=path|/Data%20Dictionary/Email%20Templates/Invite%20Email%20Templates|&page=1

You can create your own template by taking the reference of any of the templates available above and bootstrap into repository and use it in your custom code where you want to send email after user creation.

A sample template:

 

<html>
   <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>
                                          <div style="font-size: 14px; margin: 12px 0px 24px 0px; padding-top: 10px; border-top: 1px solid #aaaaaa;">
                                             <p>Welcome</p>
                                             <p>You are receiving this email because an account has been set up for you at your request or at the request of your Manager. To complete your setup, you must do the following:</p>
											 <p>1.	Click this link or copy it into your internet browser:<br/>
											 <br /><a href="${shareUrl}">${shareUrl}</a></p>
											 </p>
											 <p>2. Use your AD credentials to log in.</p><br/>
											 <p>System Administrator</p>
                                          </div>
                                       </td>
                                    </tr>
                                 </table>
                              </td>
                           </tr>
                           <tr>
                              <td>
                                 <div style="border-bottom: 1px solid #aaaaaa;">&nbsp;</div>
                              </td>
                           </tr>
                           <tr>
                              <td style="padding: 10px 30px;">
                                 <img src="${shareUrl}/res/components/images/alfresco.png" alt="" width="117" height="73" border="0" />
                              </td>
                           </tr>
                        </table>
                     </td>
                  </tr>
               </table>
            </td>
         </tr>
      </table>
   </body>
</html>

 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
jbrasil
Active Member II

Re: Template notification e-mail create username

Hi, abhinavmishra14
Exact, That's right.
What parameter do you pass in this tag?
<br /><a href="${shareUrl}">${shareUrl}</a></p>
Thanks a lot!
Zé Brasil

jbrasil
Active Member II

Re: Template notification e-mail create username

Hi,
We created the template new-user-email_pt_BR.html.ftl
Repositório > Data Dictionary > Email Templates > invite

And we associate the .csv
Then we received the notification.
Is there any way to send the email when creating the user manually?
With best regards,