SendNote()

Schedules a note item.

Token ID

AFTKN_SEND_NOTE or 579

Syntax

DWORD SendNote( ANSISTRING To; 
                [ANSISTRING Subject]; 
                [WORD StartDay]; 
                [WORD StartMonth]; 
                [WORD StartYear]; 
                [ANSISTRING Note]; 
                [ANSISTRING Attach]; 
                [ANSISTRING CC]; 
                [ANSISTRING BC]; 
                [ANSISTRING From]; 
                [ANSISTRING ViewName]; 
                [ENUM AttachListHasDisplayNames]; 
                [ANSISTRING UserID]; 
                [ANSISTRING MessageIDs]; 
                [ENUM MessageIsFile]; 
                [ENUM SubjectIsFile]; 
                [ENUM ViewNameIsFile]; 
                [ANSISTRING OleAttach]; 
                [ANSISTRING SenderID])

Parameters

To As ANSISTRING

User ID of one or more note recipients. Separate multiple recipients with commas.

Subject As ANSISTRING

Parameter also accepts a file name. (Optional)

StartDay As WORD

(Optional)

StartMonth As WORD

(Optional)

StartYear As WORD

(Optional)

Note As ANSISTRING

Parameter also accepts a file name. (Optional)

Attach As ANSISTRING

Separate multiple attachments with commas. (Optional)

CC As ANSISTRING

User ID of one or more note recipients. Separate multiple recipients with commas.

BC As ANSISTRING

User ID of one or more blind copy recipients. Separate multiple recipients with commas. (Optional)

From As ANSISTRING

Name of person sending the notice. (Optional)

ViewName As ANSISTRING

Name of a Note view. For example, "Notice w/attach", or the name of a custom Note view. Parameter also accepts a file name. (Optional)

AttachListHasDisplayNames As ENUM

(Optional)

  • 0 No
  • 1 Yes and the Attach parameter must include the file name and display name for each attachment, respectively.
UserID As ANSISTRING

Use this parameter to send a note item from a proxy mailbox. (Optional)

MessageIDs As ANSISTRING

Attach encapsulated items. Separate multiple message IDs with a comma. (Optional)

MessageIsFile As ENUM

Message parameter contains a file name. (Optional)

  • 0 No
  • 1 Yes
SubjectIsFile As ENUM

Subject parameter contains a file name. (Optional)

  • 0 No
  • 1 Yes
ViewNameIsFile As ENUM

ViewName parameter contains a file name. (Optional)

  • 0 No
  • 1 Yes
OleAttach As ANSISTRING

(Optional)

SenderID As ANSISTRING

(Optional)

Return Values

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

Remarks

The message body field (in the Message View and the Object API) has a limit of 32,000 characters. The Message View will stop accepting data after 32,000 characters.