0 votes

Hi,

we are using a scheduled job in Adaxes to notify users that their password will expire in x days.
Now, we as IT were approached by Marketing to set up all our notification mails in HTML with corporate design and I need some help to configure Adaxes to send something like this:

<html>

<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; =
charset=us-ascii">

<title>Littelfuse</title>
</head>

<body bgcolor="#FFFFFF">
<div align="center">
<div align="center">
<div>&nbsp;</div>

<table style="width: 704px;" border="0" cellpadding="0" bgcolor="#666666">
          <tbody>
                   <tr>
                             <td bgcolor="#ffffff">
                             <table style="width: 700px;" border="0" cellspacing="0" bordercolor="#666666" cellpadding="0" bgcolor="#ffffff">
                                      <tbody>
                                                <tr>
                                                          <td class=""><img alt="IT HelpDesk Notification" height="256" src="http://laufi.org/lfimages/helpdesk_header_note.gif" style="width: 700px; height: 256px;" title="IT HelpDesk Announcement" width="700"></td>
                                                </tr>
                                                <tr>
                                                          <td>
                                                          <table style="width: 700px;" border="0" cellspacing="0" cellpadding="20">
                                                                   <tbody>
                                                                             <tr>
                                                                                      <td valign="top" class=""><div style="text-align: left;">
<p><span style="color:#696969;"><span style="font-family:arial,helvetica,sans-serif;"><span style="font-size:14px;">Dear {RaiseUser/Title},<br>
&nbsp;<br>
<img align="right" alt="" border="0" height="130" src="http://laufi.org/lfimages/help-desk-icon.jpg" style="width: 150px; height: 130px; float: right; border-width: 0px; border-style: solid; margin-left: 25px; margin-right: 25px;" width="150">

a request has been raised on your behalf at the service desk.<br>
<br>
-----------------------------<br>
Reference Number : {Id}<br>
Title : {Title}<br>
Request : {_ConfigItemRequested/Title}<br>
----------------------------<br>
<br>
Depending on the type of request, this will now be progressed to check availability, or will go through the appropriate authorization. <br>
<br>
You will receive email updates on the progress of this request.<br>

</span></span></span><br>
<br>
<br>
<br>
<span style="font-size: 12px;"><span style="font-size:14px;"><font color="#696969"><span style="font-family:arial,helvetica,sans-serif;">Should you have any questions or concerns please&nbsp;email&nbsp;<a href="mailto:helpdesk@littelfuse.com">helpdesk@littelfuse.com</a> or call 773.628.0628.</span></font></span><br>
<span id="cke_bm_323E" style="display: none;">&nbsp;</span></span></p>
</div>
</td>
                                                                             </tr>

                                                                   </tbody>
                                                          </table>
                                                          </td>
                                                </tr>
                                                <tr>
                                                          <td>
                                                          <table border="0" cellspacing="0" cellpadding="4">
                                                                   <tbody>
                                                                   </tbody>
                                                          </table>
                                                          </td>
                                                </tr>
                                                <tr>
                                                          <td class=""><a href="mailto:helpdesk@littelfuse.com?subject=" target="_self"><img alt="" border="0" height="38" src="http://laufi.org/lfimages/inthenews_footer.gif" width="700"></a></td>
                                                </tr>
                                                <tr>
                                                          <td>
                                                          <table style="width: 100%;" border="0" cellspacing="0" cellpadding="5">
                                                                   <tbody>
                                                                             <tr>
                                                                                      <td style="background: rgb(192, 192, 192); font-family: Arial; font-size: 12px;" bgcolor="#c0c0c0" valign="top" width="62%" pardot-data="" class=""><p class="footer"><br>
<font color="#ffffff" size="1">This email was sent by: Littelfuse Inc.<br>
8755 W. Higgins Rd. Suite 500 Chicago, IL 60631<br>
USA </font><br>
<br>
</p>
</td>
                                                                                      <td style="background: rgb(192, 192, 192); font-family: Arial; font-size: 12px;" bgcolor="#c0c0c0" valign="top" width="34%" pardot-data="" class=""><p class="footer"><font size="1"><font color="#ffffff">Littelfuse, Inc.<br>
8755 W. Higgins Road, Suite 500<br>
Chicago, IL 60631</font><br>
<a style="color: rgb(255, 255, 255);" href="http://www.littelfuse.com">littelfuse.com</a><br>
<br>
<font color="#ffffff">© Copyright 2013, Littelfuse, Inc.<br>
All rights reserved. </font></font></p>
</td>
                                                                             </tr>
                                                                   </tbody>
                                                          </table>
                                                          </td>
                                                </tr>
                                      </tbody>
                             </table>
                             </td>
                   </tr>
          </tbody>
</table>
</div>
</div>

</body>

</html>

Your help would be highly appreciated

kind regards
Ingemar

by (960 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello Ingemar,

The standard Send e-mail notification action supports sending mails in HTML format. To a action the Send e-mail notification action used in your Scheduled Task to send notifications in the HTML format, you need to do the following:

  1. Launch Adaxes Administration Console.
  2. In the Console Tree, navigate to and select the Scheduled Task you use to notify users. The actions and conditions of the Task will be displayed in the Result Pane (located to the right).
  3. Double-click the action that sends the e-mail notifications.
  4. In the drop-down list located next to the Message field, select HTML.
  5. After this, you can either edit the HTML code directly in the Message field
    or click the HTML Editor button to edit the message in a WYSIWYG HTML editor.
0

Hi,

thanks for your quick reply.
Unfortunately I don't have that option to switch to html. We are still on Version adaxes 2013.1

kind regards
Ingemar

0

Ingemar,

The possibility to send HTML-formatted messages using the standard Send e-mail notification action appeared only in Adaxes 2013.2, so we suggest that you upgrade. If you cannot upgrade to a newer version, you can send e-mail notifications using PowerShell scripts. Here's a small example on how to send an HTML message using the built-in PowerShell cmdlet Send-MailMessage:

# Email message setings
$to = "%mail%" # TODO: modify me
$from = "noreplay@domain.com" # TODO: modify me
$smtpServer = "mail.domain.com" # TODO: modify me
$subject = "My Subject" # TODO: modify me
$messageBody = "
<html>

<body style='font-family:Arial; font-size: 13px'>
<p>Dear %name%,</p>
<p>Your account expires on %accountExpires%.</p>
</body>

</html>" # TODO: modify me

# Send message
Send-MailMessage -To $to -from $from -SmtpServer $smtpServer -Subject $subject -Body $messageBody -BodyAsHtml

To add the script to your Scheduled Task, use the Run a program or PowerShell script action.

0

that worked thanks!

Related questions

0 votes
1 answer

I need a report script that will email me a list of the users with these field values: DN,cn,display name,%adm-PasswordExpires% Thanks!

asked Aug 8, 2012 by mpaul (360 points)
0 votes
1 answer

We are evaluating the product and would like to let users of AD to change password in self service page. We would like to set a 90 days change password policy, ... self service page? Is it achievable (with customization and batch program)? Thanks in advance.

asked Apr 27, 2020 by eric (20 points)
0 votes
1 answer

To include a password in an e-mail when creating a user I use %unicodePwd% which works. But when I use Action "Reset User password" using template %adm-RandomString,7% I' ... e-mail (not with %unicodePwd% or %userPassword%). How can I achieve this? Thnx Remco

asked Feb 27, 2014 by RTiel (780 points)
0 votes
1 answer

is it possible to send a mail in HTML format?. such a welcome email after creating a user.

asked Dec 21, 2011 by mmichard (360 points)
0 votes
1 answer

We are looking for if Adaxes has a report we can run that will tell us if there are multiple users using the same or similar passwords? Is there any tool that we can ... as another users? I appreciate any information you may be able to provide. Thank You,

asked Feb 27 by Jeff.Briand (80 points)
3,588 questions
3,277 answers
8,303 comments
548,093 users