killerovsky / Smtp-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smtp

This is a library which implements the Simple Mail Transport Protocol (SMTP -- RFC 5321.

Usage

The Smtp::Client class implements the client side of SMTP, supporting basic connection to an SMTP server, client authentication, and the sending of e-mail.

Supported platforms / recommended toolchains

This is a portable C++11 application which depends only on the C++11 compiler, the C and C++ standard libraries, and other C++11 libraries with similar dependencies, so it should be supported on almost any platform. The following are recommended toolchains for popular platforms.

  • Windows -- Visual Studio (Microsoft Visual C++)
  • Linux -- clang or gcc
  • MacOS -- Xcode (clang)

Building

This library is not intended to stand alone. It is intended to be included in a larger solution which uses CMake to generate the build system and build applications which will link with the library.

There are two distinct steps in the build process:

  1. Generation of the build system, using CMake
  2. Compiling, linking, etc., using CMake-compatible toolchain

Prerequisites

  • CMake version 3.8 or newer
  • C++11 toolchain compatible with CMake for your development platform (e.g. Visual Studio on Windows)
  • MessageHeaders - a library which can parse and generate e-mail or web message headers
  • SystemAbstractions - a cross-platform adapter library for system services whose APIs vary from one operating system to another

Build system generation

Generate the build system using CMake from the solution root. For example:

mkdir build
cd build
cmake -G "Visual Studio 15 2017" -A "x64" ..

Compiling, linking, et cetera

Either use CMake or your toolchain's IDE to build. For CMake:

cd build
cmake --build . --config Release

About

License:MIT License


Languages

Language:C++ 98.9%Language:CMake 1.1%