SendPhone()

Sends a phone item.

Token ID

AFTKN_SEND_PHONE or 604

Syntax

DWORD SendPhone( ANSISTRING To; 
                 [ANSISTRING CallerName]; 
                 [ANSISTRING CallerCompanyName]; 
                 [ANSISTRING CallerPhone]; 
                 [ENUM Telephoned]; 
                 [ENUM PleaseCall]; 
                 [ENUM WillCallAgain]; 
                 [ENUM ReturnedYourCall]; 
                 [ENUM WantsToSeeYou]; 
                 [ENUM CameToSeeYou]; 
                 [ENUM Urgent]; 
                 [ANSISTRING Subject]; 
                 [ANSISTRING Message]; 
                 [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 phone item recipients. Separate multiple recipients with commas.

CallerName As ANSISTRING

(Optional)

CallerCompanyName As ANSISTRING

(Optional)

CallerPhone As ANSISTRING

(Optional)

Telephoned As ENUM

(Optional)

  • 0 No
  • 1 Yes
PleaseCall As ENUM

Return phone call. (Optional)

  • 0 No
  • 1 Yes
WillCallAgain As ENUM

(Optional)

  • 0 No
  • 1 Yes
ReturnedYourCall As ENUM

(Optional)

  • 0 No
  • 1 Yes
WantsToSeeYou As ENUM

(Optional)

  • 0 No
  • 1 Yes
CameToSeeYou As ENUM

(Optional)

  • 0 No
  • 1 Yes
Urgent As ENUM

(Optional)

  • 0 No
  • 1 Yes
Subject As ANSISTRING

Parameter also accepts a file name. (Optional)

Message 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 carbon copy recipients. Separate multiple recipients with commas. (Optional)

BC As ANSISTRING

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

From As ANSISTRING

Name of person scheduling the appointment. (Optional)

ViewName As ANSISTRING

(Optional)

AttachListHasDisplayNames As ENUM

(Optional)

  • 0 No
  • 1 Yes
UserID As ANSISTRING

Use this parameter to schedule an appointment 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 mail item. Use EnvSentMessageID() token to get actual message ID of the mail 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.

See Also