LotusScript Scheduled Agent - Sending mail changes font to default monospace

Hello.

I have two scheduled agents written in LS that both send internal emails. They both are saved in the same Notes application and both are configured to run from the same server. They both contain the following line…

richStyle.NotesFont = rtitem3.GetNotesFont(“Arial”, True)

However, when I receive the emails sent by the two agents, only one of them is displayed using the Arial font. The other is displayed using default monospace. What are some things I should check to troubleshoot this?

Thanks!

edwardkoh@hotmail.com

Subject: Solved - Coding logic mistake

UPDATE: I found my mistake. In the code, there is a loop where I create a new email body at every pass…

Set rtitem3 = New NotesRichTextItem(newDoc3, “Body”)

It is after here where I needed to put the line…

richStyle.NotesFont = rtitem3.GetNotesFont(“Arial”, True)

My mistake was that I put that line in the wrong place in the code.

Thanks!