Creating Application Classes
Procedure
To create an application class for your BSP:
-
Choose the Properties tab page in your BSP application.
-
Enter the name of your new class in the Application Class field.
-
Double-click on the new class.
-
Choose Yes to the prompt "Do you want to create a new class?".
-
In the following popup you can make further settings for your class. To confirm your entries, choose Save.
-
Enter the details in the object catalog: Assign your class to a package and save again.
The system branches from your BSP application into the Class Builder.
-
Now you are ready to work with your new class.
Result
The class you created generates objects, document, sender, receiver, possible attachments as well as a mail request (see the Overview page) and fills them with the data from the form.
Implement the following methods:
|
Method |
Description |
|
SET_ADDRESS |
Specifies the address |
|
SET_TIME |
Specifies the time |
|
SEND |
Send mail |
|
GET_TEXT |
Fetches the mail text |
The mail text is generated online from the parameters. It looks like this: