OpenNTF.org - Automated Dear XXX,
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
Automated Dear XXX, 
Rating:
Not Rated Yet 
Contributor:
F Hesse 
Category:
Lotus Formula 
Type:
Email 
Document Release:
Notes Version:
R6.x, R5.x, R7.x 
Last Modified:
14 Jun 2006 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
How to automaticaly add Dear XXX, into your mails ?


Even though very basic, this is working fine for most of lotus adresses. It could be improved to behave smarter with internet adresses...

Usage / Example
2 ways to do that:

1)
Create a stationary memo - go to create - computed text - and enter :

"Dear " + @Text(@Left(@Name([CN]; EnterSendTo);" "))
as the formula.


2)
Go to file menu - preferences -toolbar preferences - customize - add new button - formula is :
@Command([EditGotoField];"body");
@Command([EditInsertText];"Dear " + @Text(@Left(@Name([CN]; EnterSendTo);" ")) + "," + @NewLine)

click on this new button with the focus on an editable document.


 Comments
Posted by F Hesse on 06/16/2006 09:31:00 AMextra
If you share a mailfile and you want to sign it you can use the following code :
@Text(@Name([CN]; From))
@Text(@Left(@Name([CN]; From);" ")) (first name only)
optionnaly add:
+ @newline + "my title"
More dangerous : If you want a mail intended to many people to look personnal use the following code :
@Text(@Name([CN]; @username)) + "," + @newline
"Dear " + @Text(@Left(@Name([CN]; @username);" ")) (first name only)
 Add your comment!