ISMessage.Sender

Description

The sender of the message.

Syntax

object.Sender

Part Attribute Type Description
object Required
The object always implements the ISMessage interface

Return Value

string

Example

Add a new message and display the text of the message and its sender.

Dim aMes
Dim aMessageRecipients
Dim aPatient

Set aMes = Profile.CreateMessage
aMes.Text = aMes.AddText("Hello! Come to my birthday party!")
aMes.Subject = "Birthday party"     
set aMessageRecipients = aMes.Recipients
set aPatient = Profile.SelectPatient
if aPatient.Email <> "" then 
  aMessageRecipients.AddPatient(aPatient)
else  
  Profile.MsgBox("The massage cannot be sent, because the patient has no email")
  exit sub
end if  
  
aMes.Send
Profile.MsgBox("The message with the text '" & aMes.Text &_
  "' was sent by " & aMes.Sender)
Note:

In Profile Client v8 on User Interface Sender can be found in Organisation > Work Centre > Communication > Email > Inbox > From.

Version information

Added in v7.8.0