Importing Mail Classes

The mail classes are not built-in classes, like Rowset, Field, Record, and so on. They are application classes. Before you can use these classes in your PeopleCode program, you must import them to your program.

An import statement names either all the classes in a package or a particular application class.

The application package PT_MCF_MAIL contains the following classes:

  • MCFBodyPart

  • MCFEmail

  • MCFGetMail

  • MCFHeaders

  • MCFInboundEmail

  • MCFMailStore

  • MCFMailUtil

  • MCFMultiPart

  • MCFOutboundEmail

  • MCFPart

  • SMTPSession

To import all the mail classes, use the following import statement:

import PT_MCF_MAIL:*;

Using an asterisk after the package name makes all the application classes directly contained in the named package available. Application classes contained in subpackages of the named package are not made available. The PT_MCF_MAIL application package contains no subpackages.