Solved

Using TextBold in MailSend

Posted on 2006-06-14
8
1,007 Views
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 -
servicegroup
0
Comment
Question by:servicegroup
8 Comments
 
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"
0
 
LVL 20

Accepted Solution

by:
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
0
 
LVL 18

Assisted Solution

by:marilyng
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([EditGotoField];"Body");
@Command([TextSetFontColor];[Red]);
@Command( [TextBold] );
@Command([EditInsertText];"Here is some Text in Bold Red" + @NewLine);
@Command( [TextBold] );
@Command([TextSetFontColor];[DarkBlue]);
@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)
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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
      richStyle.notesfont=FONT_HELV
      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.notesfont=FONT_COURIER      
      richstyle.notescolor=COLOR_DARK_BLUE
      richstyle.Bold=False
      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
      richstyle.notescolor=COLOR_BLACK
      Call rtitem.AppendStyle(richStyle)
      Call rtitem.addnewline(2)

etc.

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

Steve
0
 
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.
0
 
LVL 18

Expert Comment

by:marilyng
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 :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Text over two lines in VBA for email 26 156
Send a link through lotus notes automated mail 11 128
Lotus notes VB code 4 200
Domino Server 2 68
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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now