Using TextBold in MailSend

Posted on 2006-06-14
Last Modified: 2013-12-18
I have  a form which upon selecting a Submit button, sends an email.  Is it possible to make certain words of the email bold or a change the color so that it stands out to the person receiving the email?  I am using formula language.

Thanks -
Question by:servicegroup
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 46

Expert Comment

by:Sjef Bosman
ID: 16907016
I think it's not possible. Even in LotusScript you cannot do everything you want, boldface is possible but changing colours isn't. You could try to send HTML emails, but that's quite a lot of work, since you have to bypass the normal Domino send mechanism. See
    http:Q_20432381.html "Using LotusScript to send HTML email"
LVL 20

Accepted Solution

brwwiggins earned 43 total points
ID: 16907177
in Formula there is not a way that I know of. If you convert to using Lotus script then you can look at the NotesRichTextStyle class
LVL 18

Assisted Solution

marilyng earned 41 total points
ID: 16908211
The only way you can change the color using @Commands is to open the mail form and compose it:

@Command( [TextBold] );
@Command([EditInsertText];"Here is some Text in Bold Red" + @NewLine);
@Command( [TextBold] );
@Command([EditInsertText];"Now this should be regular stuff")

Otherwise you are left with NotesRichTextStyle, NotesRichTextParagraphStyle class and so on as BRWIggins says.

Using script, you can indent, change color, add a button and do a lot of things with your email that you cannot do in formula language.

I typically start my email reminders with a BOLD RED: Escalation Notice!   (within minutes, the problem would be addressed - amazing what a little color can do for an email)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 41 total points
ID: 16927498
sjef, why do you say you can't do colours in LotusScript?  As the others say it is quite possible, I have a few manually craeted "newsletter" style reports sent out in rich text using code like this, a snippet is here if it gives you some pointers:
'Setup rich text parameters
      Set rtitem = New NotesRichTextItem( newsDoc, "Body")
'Start of message body
      richStyle.Bold = True
      Call rtitem.AppendStyle(richStyle)
      Call rtitem.AppendText("Please review ......  You can click on the links next to each item to open each document.")
      Call rtitem.addnewline(2)
'Fixed pitch font, Heading Underlined, Blue so headings line up with data without tables
      richStyle.Underline= True
      Call rtitem.AppendStyle(richStyle)
      Call rtitem.AppendText("LINK" & "  " & View.columns(3).Title)
'Turn off underline, blue leaving in Courier font
      richStyle.Underline= False
      Call rtitem.AppendStyle(richStyle)
      Call rtitem.addnewline(2)


Ends up working really nicely though all these options are somewhat harder than @MailSend...

LVL 46

Expert Comment

by:Sjef Bosman
ID: 16928685
So sorry...:-$

Luckily I said "I think it's not possible". It seems that there are ways in R6 to create new colours (CreateColorObject) and fonts (GetNotesFont). I have yet to try these gadgets, and I wonder how the results are when the mail is sent out to an Internet address.
LVL 18

Expert Comment

ID: 16929752
Colors work, fonts work if the other person has the font.  When you start creating tables, or embedding objects, not sure.   Then, I think, you have to use the mime objects and reference the notes address on a server that is available to the sender, like sending a web page.   Could be wrong, haven't  tested html email lately :)

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question