mikroSDK Reference Manual
smtp_client_misc.h
Go to the documentation of this file.
1
31#ifndef _SMTP_CLIENT_MISC_H
32#define _SMTP_CLIENT_MISC_H
33
34//Dependencies
35#include "core/net.h"
36#include "smtp/smtp_client.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//SMTP client related functions
44void smtpClientChangeState(SmtpClientContext *context,
45 SmtpClientState newState);
46
47error_t smtpClientSendCommand(SmtpClientContext *context,
49
50error_t smtpClientFormatCommand(SmtpClientContext *context,
51 const char_t *command, const char_t *argument);
52
53error_t smtpClientParseEhloReply(SmtpClientContext *context,
54 char_t *replyLine);
55
56error_t smtpClientFormatMailHeader(SmtpClientContext *context,
57 const SmtpMailAddr *from, const SmtpMailAddr *recipients,
58 uint_t numRecipients, const char_t *subject);
59
60error_t smtpClientFormatMultipartHeader(SmtpClientContext *context,
61 const char_t *filename, const char_t *contentType,
62 const char_t *contentTransferEncoding, bool_t last);
63
64error_t smtpClientCheckTimeout(SmtpClientContext *context);
65
66//C++ guard
67#ifdef __cplusplus
68}
69#endif
70
71#endif
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.
SMTP client (Simple Mail Transfer Protocol)
SmtpClientState
SMTP client states.
Definition smtp_client.h:199
error_t(* SmtpClientReplyCallback)(SmtpClientContext *context, char_t *replyLine)
Multiline reply parsing callback function.
Definition smtp_client.h:219
Email address.
Definition smtp_client.h:241