<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Jason,<br>
<br>
the e-mail notifications don't support HTML now, just text/plain.<br>
<br>
I've created a new feature request for this:
<a class="moz-txt-link-freetext" href="https://jira.evolveum.com/browse/MID-2072">https://jira.evolveum.com/browse/MID-2072</a>, currently targeted for
midPoint 3.2.<br>
<br>
Is this feature critical for your deployment now? It is not
difficult to implement, but to do it now would require a change in
priorities of other tasks.<br>
<br>
Thank you,<br>
regards,<br>
Ivan<br>
<br>
p.s. After the issue is implemented, you would need to escape all
special characters such as angle brackets, ampersands etc.<br>
<br>
<div class="moz-cite-prefix">On 10/29/2014 06:39 PM, Jason Everling
wrote:<br>
</div>
<blockquote
cite="mid:CAFkZXY5BEw1Px3PnMC0bL37BwRY-AvnRvf1sdR2mcx75UgqvGA@mail.gmail.com"
type="cite">
<div dir="ltr">That worked,
<div><br>
</div>
<div>Final Question,</div>
<div><br>
</div>
<div>The below works but the following one after does not,</div>
<div><br>
</div>
<div><bodyExpression><br>
</div>
<div>
<div><span class="" style="white-space:pre"> </span><script></div>
<div><span class="" style="white-space:pre"> </span><code></div>
<div><span class="" style="white-space:pre"> </span>"[IDM]
Your username is: " + requestee?.getName()?.getOrig()</div>
<div><span class="" style="white-space:pre"> </span></code></div>
<div><span class="" style="white-space:pre"> </span></script></div>
<div></bodyExpression></div>
</div>
<div><br>
</div>
<div>Can I include HTML code within, Does this look correct or
how should it be constructed?</div>
<div><br>
</div>
<div><bodyExpression></div>
<div> <script></div>
<div> <code></div>
<div> "<p> Welome to blah blah, the
following below are links to the various resources you will
use here</p></div>
<div> </div>
<div> <p>Your Username is +
requestee?.getName()?.getOrig()</p></div>
<div><br>
</div>
<div> <p>You should login and should
your password at <a moz-do-not-send="true"
href="http://www.example/com">http://www.example/com</a></p><br>
</div>
<div><br>
</div>
<div> <p>Link 1</p></div>
<div> <p>Link 2</p><br>
</div>
<div> <p>Link 3</p>"<br>
</div>
<div> </code></div>
<div> </script></div>
<div></bodyExpression></div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Oct 29, 2014 at 10:30 AM, Ivan
Noris <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi Jason,<br>
<br>
try to escape each & by <b>&</b> that should
do the trick. I.e. && becomes && I
see the & in Pavol's email, maybe it got converted
in email clients somewhere between...<br>
<br>
Regards,<br>
Ivan
<div>
<div class="h5"><br>
<br>
<div>On 10/29/2014 02:48 PM, Jason Everling wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks for the follow up, the
organization attribute would be fine for us to
use. I had tried this out but I cannot get it to
save, I get an error when saving
<div><br>
</div>
<div><code>Caused by:
org.xml.sax.SAXParseException; lineNumber: 82;
columnNumber: 46; The entity name must
immediately follow the '&' in the entity
reference.</code><br>
</div>
<div><code><br>
</code></div>
<div><br>
</div>
<div>Code:</div>
<div><br>
</div>
<div>
<div><notificationConfiguration></div>
<div> <handler> <!--
branch for department 'A' --></div>
<div><span style="white-space:pre-wrap"> </span><expressionFilter></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div>
<code>event.isUserRelated() && </div>
<div><span style="white-space:pre-wrap"> </span>requestee.getOrganization().size()
== 1 && </div>
<div><span style="white-space:pre-wrap"> </span>requestee.getOrganization().get(0).getOrig()
== 'GenEd'</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></expressionFilter></div>
<div><span style="white-space:pre-wrap"> </span><accountPasswordNotifier></div>
<div><span style="white-space:pre-wrap"> </span><name>New
Account Notification</name></div>
<div><span style="white-space:pre-wrap"> </span><operation>add</operation></div>
<div><span style="white-space:pre-wrap"> </span><status>success</status></div>
<div><span style="white-space:pre-wrap"> </span><recipientExpression></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div><span style="white-space:pre-wrap"> </span><code>basic.getExtensionPropertyValue(requestee,
'<a moz-do-not-send="true"
href="http://whatever.com/my"
target="_blank">http://whatever.com/my</a>',
'otherMailbox')</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></recipientExpression></div>
<div><span style="white-space:pre-wrap"> </span><subjectExpression></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div><span style="white-space:pre-wrap"> </span><code>"Welcome
to the General Education Program"</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></subjectExpression></div>
<div><span style="white-space:pre-wrap"> </span><bodyExpression></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div><span style="white-space:pre-wrap"> </span><code>"[IDM]
Your username is: " +
requestee?.getName()?.getOrig()</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></bodyExpression></div>
<div><span style="white-space:pre-wrap"> </span><transport>mail</transport></div>
<div><span style="white-space:pre-wrap"> </span></accountPasswordNotifier></div>
<div><span style="white-space:pre-wrap"> </span></handler></div>
<div><span style="white-space:pre-wrap"> </span><handler>
<!-- branch for department 'B' --></div>
<div><span style="white-space:pre-wrap"> </span><expressionFilter></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div>
<code>event.isUserRelated() && </div>
<div><span style="white-space:pre-wrap"> </span>requestee.getOrganization().size()
== 1 && </div>
<div><span style="white-space:pre-wrap"> </span>requestee.getOrganization().get(0).getOrig()
== 'Info'</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></expressionFilter></div>
<div><span style="white-space:pre-wrap"> </span><accountPasswordNotifier></div>
<div><span style="white-space:pre-wrap"> </span><name>New
Account Notification</name></div>
<div><span style="white-space:pre-wrap"> </span><operation>add</operation></div>
<div><span style="white-space:pre-wrap"> </span><status>success</status></div>
<div><span style="white-space:pre-wrap"> </span><recipientExpression></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div><span style="white-space:pre-wrap"> </span><code>basic.getExtensionPropertyValue(requestee,
'<a moz-do-not-send="true"
href="http://whatever.com/my"
target="_blank">http://whatever.com/my</a>',
'otherMailbox')</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></recipientExpression></div>
<div><span style="white-space:pre-wrap"> </span><subjectExpression></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div><span style="white-space:pre-wrap"> </span><code>"Welcome
to the Information Systems
Program"</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></subjectExpression></div>
<div><span style="white-space:pre-wrap"> </span><bodyExpression></div>
<div><span style="white-space:pre-wrap"> </span><script></div>
<div><span style="white-space:pre-wrap"> </span><code>"[IDM]
Your username is: " +
requestee?.getName()?.getOrig()</code></div>
<div><span style="white-space:pre-wrap"> </span></script></div>
<div><span style="white-space:pre-wrap"> </span></bodyExpression></div>
<div><span style="white-space:pre-wrap"> </span><transport>mail</transport></div>
<div><span style="white-space:pre-wrap"> </span></accountPasswordNotifier></div>
<div><span style="white-space:pre-wrap"> </span></handler></div>
<div><span style="white-space:pre-wrap"> </span><!--
Universal For All</div>
<div><span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap"> </span><handler></div>
<div><span style="white-space:pre-wrap"> </span><simpleUserNotifier></div>
<div> ... configuration common to
all cases ...</div>
<div><span style="white-space:pre-wrap"> </span></simpleUserNotifier></div>
<div><span style="white-space:pre-wrap"> </span></handler></div>
<div><span style="white-space:pre-wrap"> </span>--></div>
<div><span style="white-space:pre-wrap"> </span>
</div>
<div> <mail></div>
<div>
<redirectToFile>/var/log/tomcat7/mail-notifications.log</redirectToFile></div>
<div> </mail></div>
<div><span style="white-space:pre-wrap"> </span></div>
<div></notificationConfiguration></div>
</div>
<div><br>
</div>
</div>
<br>
</blockquote>
<br>
</div>
</div>
<span class="">
<pre cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer
<a moz-do-not-send="true" href="http://evolveum.com" target="_blank">evolveum.com</a>
___________________________________________
"Idem per idem - semper idem Vix."
</pre>
</span></div>
<br>
_______________________________________________<br>
midPoint mailing list<br>
<a moz-do-not-send="true"
href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a moz-do-not-send="true"
href="http://lists.evolveum.com/mailman/listinfo/midpoint"
target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<font size="2"><br>
<br>
CONFIDENTIALITY NOTICE:<br>
This e-mail together with any attachments is proprietary and
confidential; intended for only the recipient(s) named above and
may contain information that is privileged. You should not
retain, copy or use this e-mail or any attachments for any
purpose, or disclose all or any part of the contents to any
person. Any views or opinions expressed in this e-mail are those
of the author and do not represent those of the Baptist School
of Health Professions. If you have received this e-mail in
error, or are not the named recipient(s), you are hereby
notified that any review, dissemination, distribution or copying
of this communication is prohibited by the sender and to do so
might constitute a violation of the Electronic Communications
Privacy Act, 18 U.S.C. section 2510-2521. Please immediately
notify the sender and delete this e-mail and any attachments
from your computer. </font><br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Ivan Noris
Senior Identity Management Engineer
evolveum.com
___________________________________________
"Idem per idem - semper idem Vix."
</pre>
</body>
</html>