I need customize the mails and I need introduce images.
I have created a template mail and the code html print directly in the mail
How can I insert html in mail?
Greetings.
I need customize the mails and I need introduce images.
I have created a template mail and the code html print directly in the mail
How can I insert html in mail?
Greetings.
What version are you using?
8.1.4
Then please take a look at the documentation here. https://support.oneidentity.com/technical-documents/identity-manager/8.1.3/operational-guide/13#TOPIC-1481201
You need to create a script that created your HTML code and returns this as a string parameter. To avoid the escaping of the script result, you need to tag the script call in your mal template with $SCRIPT(<Your script name>):HTML$
OK, thank you.
Now, I want pass param.
My script is:
Public Function CCC_Print_Header_Mail(ByVal name As String , ByVal surname As String ) As String
and the call in the template mail is:
$SCRIPT(CCC_Print_Header_Mail, "$FK(UID_PersonHead).FirstName$|$FK(UID_PersonHead).LastName$"):HTML$
I have the error: Could not find a script with the correct signature.
Greetings.
OK, thank you.
Now, I want pass param.
My script is:
Public Function CCC_Print_Header_Mail(ByVal name As String , ByVal surname As String ) As String
and the call in the template mail is:
$SCRIPT(CCC_Print_Header_Mail, "$FK(UID_PersonHead).FirstName$|$FK(UID_PersonHead).LastName$"):HTML$
I have the error: Could not find a script with the correct signature.
Greetings.
You can only pass one param as described here
and the script needs to have a signature of one of the following two:
So your script needs to be either
and you need to split and the options in your script accordingly or
and access the properties FK(UID_PersonHead).FirstName and FK(UID_PersonHead).LastName using the baseEntity and an EntityWalker in your script.
Dim strFirstName as String = baseEntity.CreateWalker(Session).GetValue("FK(UID_PersonHead).FirstName").String Dim strLastName as String = baseEntity.CreateWalker(Session).GetValue("FK(UID_PersonHead).LastName").String
HtH
Thank you. I already work fine.
Now, I need insert styles css and this don't work. How can I insert css?
Greetings.
You mean this
<h1 style="color:blue;">A Blue Heading</h1>
is not working?
I have:
<style>
.persona { "
height: 124px;
text-align: center;
font-family: verdana, arial, sans-serif;
}
.nom, .bienvenuto {
font-size: 28px; margin: 0; padding: 0;
}
</style>
and
<td Class='persona'> " & _
" <p Class='nom' style='text-align: left;'> " & _
" Hola, " & strFirstName & " " & strLastName & "," & _
Again, I don't think that it works this way. The only way it might work is to assign the styles in line with your HTML tags and not in the style tag.