Platforms to show: All Mac Windows Linux Cross-Platform
MapiMessageMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Windows | MBS Win Plugin | 8.3 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
This can use Outlook or Thunderbird on Windows to send email with or without GUI.
Using Messaging Application Programming Interface (MAPI)
Does not work with Micorosft Outlook Web App as we need a locally installed Outlook with a MAPI component. Since Outlook for Windows is a web app wrapped in a desktop app, it doesn't do MAPI.
- 8 properties
- property ConversationID as String
- property DateReceived as String
- property Flags as Integer
- property MessageType as String
- property NoteText as String
- property Originator as MapiRecipientMBS
- property Subject as String
- property UseUnicode as Boolean
- 7 methods
- method AddFile(file as MapiFileMBS)
- method AddRecipient(recipient as MapiRecipientMBS)
- method Files as MapiFileMBS() New in 25.1
- method Recipients as MapiRecipientMBS() New in 25.1
- method SendMail(parent as DesktopWindow, SendFlags as Integer, Threaded as Boolean) as integer
- method SendMail(parent as window, SendFlags as Integer, Threaded as Boolean) as integer
- method SendMail(SendFlags as Integer, Threaded as Boolean) as integer
- 2 shared methods
- shared method IsAvailable as boolean
- shared method IsUnicodeAvailable as boolean
- 6 constants
Message Flags
Constant | Value | Description |
---|---|---|
kFlagsReceiptRequested | 2 |
A receipt notification is requested. Client applications set this flag when sending a message. Note: Most email applications ignore the receipt notifications. |
kFlagsSent | 4 |
The message has been sent. |
kFlagsUnread | 1 |
The message has not been read. |
Send Flags
Constant | Value | Description |
---|---|---|
kSendFlagDialog | 8 |
Display a send note UI A dialog box should be displayed to prompt the user for recipients and other sending options. When Dialog is false, at least one recipient must be specified. |
kSendFlagLogonDialog | 1 | Display logon UI. more |
kSendFlagNewSession | 2 |
Don't use shared session Create a new session. |
This class has no sub classes.
Blog Entries
- MBS Xojo Plugins, version 25.2pr1
- MBS Xojo Plugins, version 18.5pr6
- Problems with killing Xojo threads with plugin calls.
- MBS Xojo / Real Studio Plugins, version 15.1pr1
Release notes
- Version 25.2
- Added Recipients and Files functions to MapiMessageMBS class.
- Version 18.5
- Added new kSendFlag* constants to MapiMessageMBS class.
- Added UseUnicode property for MapiMessageMBS class.
- Replaced 4 SendMail functions MapiMessageMBS with one unified method where you pass flags.
Some examples using this class:
Some related classes:
The items on this page are in the following plugins: MBS Win Plugin.
MapiFileMBS - MapiRecipientMBS
