# SmtpAppender.hh

Go to the documentation of this file.

    00001 #if !defined(h_2c5af17f_8daf_418f_acb8_5cfce724ec1a)
    00002 #define h_2c5af17f_8daf_418f_acb8_5cfce724ec1a
    00003
    00004 #if defined(LOG4CPP_HAVE_BOOST)
    00005 #include <boost/version.hpp>
    00006 #if BOOST_VERSION > 103400
    00007
    00008 #include "Portability.hh"
    00009 #include "LayoutAppender.hh"
    00010
    00011 namespace log4cpp
    00012 {
    00013    class LOG4CPP_EXPORT SmptAppender : public LayoutAppender
    00014    {
    00015       public:
    00016          struct mail_params;
    00017
    00018          SmptAppender(const std::string& name, const std::string& host, const std::string& from,
    00019                       const std::string& to, const std::string& subject);
    00020          virtual ~SmptAppender();
    00021          virtual void close() { }
    00022
    00023       protected:
    00024          virtual void _append(const LoggingEvent& event);
    00025
    00026       private:
    00027          mail_params * mail_params_;
    00028    };
    00029 }
    00030
    00031 #endif // BOOST_VERSION >= 103400
    00032 #endif // LOG4CPP_HAS_BOOST
    00033 #endif // h_2c5af17f_8daf_418f_acb8_5cfce724ec1a