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

by (360 points)

1 Answer

by (18.0k points)
0 votes

Hello,

You can send email notifications in HTML format with the help of a PowerShell script.

Use the Run a program or PowerShell script action instead of the Send e-mail notificaion action.

Here is an example of a PowerShell script that sends e-mail notifications:

$toAddress = "%mail%"
$subject = "Hello, %username%"
$bodyText = $Null
$bodyHtml = "<b>Dear %fullname%</b>"
$Context.SendMail($toAddress, $subject, $bodyText, $bodyHtml)

Related questions

I would like to configure a scheduled report to send to a mail contact object. However, these mail contact objects are not showing up when I try to set them as the recipients. Is this possible or is there another way to go about this?

asked Jun 19 by scoutcor (180 points)
0 votes
1 answer

Hello everyone, I've received a task to send a report of pending and denied approval requests of a specific task to an email of one of our managers. Since ... $report = $reportHeader + $reportFooter # Send Mail $Context.SendMail($to, $subject, $NULL, $report)

asked Apr 7, 2020 by rshergh (110 points)
0 votes
1 answer

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 ... ;/div&gt; &lt;/body&gt; &lt;/html&gt; Your help would be highly appreciated kind regards Ingemar

asked Mar 2, 2015 by ijacob (960 points)
0 votes
1 answer

I am trying to find a way to get an hourly report on locked out user accounts to only be sent if the total amout of locked out account exceeds 10 users. Is this possible in ... a way to setup the logic to check to see how many items are returned in a report.

asked Jun 12, 2024 by Vertigo (50 points)
0 votes
1 answer

We have a 3rd party vendor that we are able to add users based on AD security groups. What I need to do is set a parameter for the number of available licenses and whenever ... the group is 495 I would like an email to trigger telling me to add more licenses.

asked Oct 12, 2022 by A_Pastor (70 points)
0 votes
1 answer