SendOptions()

Sets Send Options for the current item (see SendMail(), for example). Not all options are available for every item.

Token ID

AFTKN_SEND_OPTIONS or 636

Syntax

DWORD SendOptions( [ENUM Priority]; 
                   [ENUM Notify]; 
                   [ENUM ReturnOnOpen]; 
                   [ENUM ReturnOnAccept]; 
                   [ENUM ReturnOnCompleted]; 
                   [ENUM ReturnOnDelete]; 
                   [ENUM StatusInfo]; 
                   [ENUM ReplyRequested]; 
                   [WORD ReplyRequestedDays]; 
                   [WORD ExpireDays]; 
                   [ENUM AutoDelete])
                   

Parameters

Priority As ENUM

(Optional) Specifies the priority:

0

Low

1

Normal

2

High

Notify As ENUM

Notify recipients when an item arrives. (Optional)

  • 0 No
  • 1 Yes
ReturnOnOpen As ENUM

Return notification options. (Optional)

276

Mail

3

MailandNotify

0

None

2

Notify

1

xOldMail

ReturnOnAccept As ENUM

Return notifications options. (Optional)

276

Mail

3

MailandNotify

0

None

2

Notify

1

xOldMail

ReturnOnCompleted As ENUM

Return notification options. (Optional)

276

Mail

3

MailandNotify

0

None

2

Notify

1

xOldMail

ReturnOnDelete As ENUM

Return notification options. (Optional)

276

Mail

3

MailandNotify

0

None

2

Notify

1

xOldMail

StatusInfo As ENUM

Information to track when a mail or phone item is sent. (Optional)

3

AllInfo

275

Delivered

1

Delivery

0

None

193

Open

280

Opened

ReplyRequested As ENUM

Request reply on the first line of the message box. (Optional)

0

None

1

WhenConvenient

2

WithinDays

ReplyRequestedDays As WORD

Number of days. The recipients sees: Reply Requested: By xx/xx/xx. (Optional)

ExpireDays As WORD

Number of days a mail or phone message remains in a recipient's Mailbox. (Optional)

AutoDelete As ENUM.

Delete the item from the sender's Sent Items when it is deleted from the recipient’s Mailbox. (Optional)

  • 0 No
  • 1 Yes

Return Values

  • IDforEnvSentMessageID DWORD. Staged message ID for tracking a note item. Use EnvSentMessageID() token to get actual message ID of the note item.