embkernel
Main Page
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Groups
Pages
NET
NetClientSmtp.hpp
1
//------------------------------------------------------------------------------
2
//This file is part of embKernel.
3
//See license.txt for the full license governing this code.
4
//------------------------------------------------------------------------------
5
6
#ifndef NET_CLIENT_SMTP_HPP_
7
#define NET_CLIENT_SMTP_HPP_
8
9
#include "NetTcpSocket.hpp"
10
11
class
NetClientSmtp {
12
private
:
13
const
static
uint8_t BASE64_INDEX_TABLE[];
14
NetTcpSocket mSocket;
15
16
void
sendBase64(
const
char
*
string
);
17
int
getReplyCode();
18
public
:
19
bool
start(
const
char
* server,
bool
authRequired,
const
char
* user,
const
char
* pass,
const
char
* from,
const
char
* to,
const
char
* subject);
20
int
queueBody(
const
char
* format, ...) __attribute__ ((format (printf, 2, 3)));
21
bool
end();
22
void
closeConnection();
23
};
24
25
#endif
/* NET_CLIENT_SMTP_HPP_ */
Generated on Sun May 12 2013 23:28:50 for embkernel by
1.8.3.1