Tip

Pass default mail delivery options from address book entries to memo (R5)

Recently, I was in a hurry sending out important Internet mail but forgot to request a return receipt for confirmation. As a result, I had to resend the mail to everyone and add a few apologies too. Now that things have calmed down a bit, I have come up with a mail template design change that works quite well.

The trick is to flag Internet addresses you want to request a return receipt from and have your Select Addresses dialog pick them up. The easiest way to do this is add this information to the recipient's Internet address using the RFC822 address format. For example, "Wolfgang Flamme [RRR]" <wflamme@mainz-online.de> where '[RRR]' stands short for 'Request Return Receipt.' You can use this trick to develop a syntax of your very own and easily pass other default options. Therefore, [R!*+] could mean request return receipt, high importance and delivery priority, trace path.

The simple return receipt example I want to show implements the following rule:
When string '[RRR]' is found at least once in the recipients list (To, Cc, Bcc)
*or*
the mail is high priority
*or*
return receipt has already been enabled
*then*
a return receipt will be requested automatically.

Please stay on the safe side. Never apply 'hot' design changes and never ever roll out a modified template without extensive validation.


Replace the first Shared Action "Send" (for Notes clients) with the code below. Save your changes and confirm with "Yes" disregarding Script Errors.
Yes, Notes *might* crash but hopefully you will get away with it.

FIELD ActionInProgress:=ActionInProgress;
FIELD ReturnReceipt:=ReturnReceipt;
FIELD Importance:=Importance;
MEMO_SEND:=1024;
Rec:=@Trim(EnterSendTo:EnterCopyTo:EnterBlindCopyTo);

@If(@Contains(@Explode(Rec);"[RRR]") | Importance="1" |
ReturnReceipt="1";
@SetField("ReturnReceipt";"1");
@SetField("ReturnReceipt";"0"));

@SetField("ActionInProgress";MEMO_SEND);
@If(@Command([FileSave]);@Command([FileCloseWindow]);@Return(""))

This was first published in May 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.