00001
00002
00004
00005 #if !defined(AFX_AUTHSMTP_H__3443D1FA_3521_4600_A48B_9FFA733BF563__INCLUDED_)
00006 #define AFX_AUTHSMTP_H__3443D1FA_3521_4600_A48B_9FFA733BF563__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include <abuse/Smtp.h>
00013 #include <string>
00014
00019
00020
00024 class AuthSmtp : public Smtp
00025 {
00026 public:
00028
00034 AuthSmtp(const char* username,const char* password,VirtStream& hOut,const std::string& logfile="");
00036 virtual ~AuthSmtp();
00038
00042 virtual void helo(const std::string& helostr="")throw(smtp_error);
00043 private:
00045 char* m_password;
00047 std::string m_username;
00048 };
00049
00050 #endif // !defined(AFX_AUTHSMTP_H__3443D1FA_3521_4600_A48B_9FFA733BF563__INCLUDED_)