MeVisLab Toolbox Reference
macMailBridge.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2011, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_MAIL_BRIDGE_H
14 #define MAC_MAIL_BRIDGE_H
15 
17 
18 #if defined(__APPLE__)
19 
21 #include <string>
22 
23 namespace macos {
24 
27  {
28  public:
29 
31  static bool createMessage(const std::string &from, const std::string &to, const std::string &cc, const std::string &subject, const std::string &message, const std::string &attachment = std::string());
32 
34  static bool sendMessage(const std::string &from, const std::string &to, const std::string &cc, const std::string &subject, const std::string &message, const std::string &attachment = std::string());
35  };
36 
37 }
38 
39 #endif // __APPLE__
40 #endif // __macMailBridge_H
Mail.app scripting bridge.
Definition: macMailBridge.h:27
static bool sendMessage(const std::string &from, const std::string &to, const std::string &cc, const std::string &subject, const std::string &message, const std::string &attachment=std::string())
send message using Mail.app
static bool createMessage(const std::string &from, const std::string &to, const std::string &cc, const std::string &subject, const std::string &message, const std::string &attachment=std::string())
create new message and display it in Mail.app
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
AppleScript support.