0 votes

Hi smart people! I'm using this script:

http://www.adaxes.com/script-repository ... t-s423.htm

Which works great for sending an email to someone, listing their direct reports.

My issue is that I'd like to update the section below, to do some email formatting for the message, but my HTML is not strong. Can someone offer advice on forcing the email to have a specific font?

I've been trying to google some solutions but so far everything I've tried is no-go. Here's part of the original script, where it sets a variable ($reportFooter) for the body of the email:

$to = "%mail%" # TODO: modify me
$subject = "Direct Reports of %name%" # TODO: modify me
$reportHeader = "<h1><b>Direct Reports of %name%</b></h1><br/>"
$reportFooter = "<hr /><p><i>Please do not reply to this e-mail, it has been sent to you for notification purposes only.</i></p>"

Now - I've updated the $reportFooter using the <pre> tag to avoid having to manually <br> out every line break, etc.:

$reportFooter = "<hr /><p>Hello,</p><br>

This is a listing of the Direct Reports currently attributed to you.

Blah blah blah (rest of the message goes here)

Love always, the IDM Team

<br>
<br>
" # TODO: modify me

I've tried forcing a different font by using a couple of different permutations of the tag

<font face="verdana" color="green">This is some text!</font>

but the email still shows up with the default font.

Like I said, my HTML is pretty vague, so any advice on how to format the whole body of the email at once would be greatly appreciated!

Thanks for any and all replies!

by (150 points)

1 Answer

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

Hello Jake,

There is no possibility to define the text font in the <pre> tag. For more details check the following article: http://www.cs.tut.fi/~jkorpela/HTML3.2/5.44.html.

As a solution you can use the <p> tag and define the text font in it. For information on how to use the tag, check the following article: https://www.w3schools.com/tags/tag_p.asp.

0

Got it - I suspected that the <pre> tag might be fighting with the other formatting; thanks for the guidance!

Related questions

0 votes
0 answers

Or would the DLs have to be manually created and rules set up? I'm starting to look into features of the product before demoing, and was hoping there was an easy answer on this one. Thanks

asked Oct 7, 2020 by SIRI-Steele (40 points)
0 votes
1 answer

Is there a way to generate a list of disabled accounts that have direct reports?

asked Oct 8, 2014 by Infounlim (470 points)
0 votes
1 answer

If a user is disabled, I would like the following process to be automated: Direct reports of this disabled user (user A) are reassigned to new active user (user B) who ... is sent to User B indicating User As direct reports have been transferred to User B

asked Apr 29 by Cavolick (60 points)
0 votes
1 answer

We would like to use the "Rule Based Groups" functionality that Adaxes has to create distribution groups where we have one group per manager and the members are the user ... so that the link doesn't break when changes happend to the managers AD object?

asked Oct 27, 2021 by odsven (1.8k points)
0 votes
1 answer

Is it possible, using a business rule, to reassign a user's direct reports to their manager when they get disabled? For example, User B reports up to User A. User B gets disabled and all of their direct reports automatically get assigned to User A. Thanks

asked Jul 6, 2020 by bavery (250 points)
2,761 questions
2,495 answers
6,538 comments
1,483,307 users