| Composing Text Messages | ||
|
To compose a simple text message, you can use the ComposeMessage method and specify the body of the message, along with the other standard header fields. For example, if you had a form with TextBox controls for the sender, recipients, subject and message body you could use code like this:
If you have a text file that contains the body of the message that you want to use, then you can create a message without a message body and then read the contents of the file and assign it to the Text property. For example:
To access the complete message, use the Message property, which will return the complete message including the headers and message body. This is most commonly used with the SMTP control to submit the message to a mail server for delivery to the recipients. |
||
|
Copyright © 2025 Catalyst Development Corporation. All rights reserved. |