# C++ API client
MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more.
- Homepage (opens new window)
- Get an API KEY (opens new window)
- Generated SDK Clients (opens new window)
- Examples (opens new window) repository
API version: 6.5.2
Package version: 8.2.15
Build package: org.openapitools.codegen.languages.CppRestSdkClientCodegen
API namespace: com.mailslurp.client.api
Model namespace: com.mailslurp.client.model
Install cpprestsdk (opens new window).
vcpkg install cpprestsdk cpprestsdk:x64-windows boost-uuid boost-uuid:x64-windows
brew install cpprestsdk
sudo apt-get install libcpprest-dev
cmake -DCPPREST_ROOT=/usr -DCMAKE_CXX_FLAGS="-I/usr/local/opt/openssl/include" -DCMAKE_MODULE_LINKER_FLAGS="-L/usr/local/opt/openssl/lib" make
# Build on Windows with Visual Studio (VS2017)
- Right click on folder containing source code
- Select 'Open in visual studio'
- Once visual studio opens, CMake should show up in top menu bar.
- Select CMake > Build All.
*Note: If the CMake menu item doesn't show up in Visual Studio, CMake for Visual Studio must be installed. In this case, open the 'Visual Studio Installer' application. Select 'modify' Visual Studio 2017. Make sure 'Desktop Development with C++' is installed, and specifically that 'Visual C++ tools for CMake' is selected in the 'Installation Details' section.
Also be sure to review the CMakeLists.txt file. Edits are likely required.*