2 * Copyright 2007-2015, Haiku Inc. All Rights Reserved.
3 * Copyright 2001-2002 Dr. Zoidberg Enterprises. All rights reserved.
4 * Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
6 * Distributed under the terms of the MIT License.
14 #include <MailFilter.h>
15 #include <MailProtocol.h>
16 #include <MailSettings.h>
22 class SMTPProtocol
: public BOutboundMailProtocol
{
25 const BMailAccountSettings
& settings
);
26 virtual ~SMTPProtocol();
32 virtual status_t
HandleSendMessages(const BMessage
& message
,
35 status_t
Open(const char *server
, int port
, bool esmtp
);
37 status_t
Login(const char *uid
, const char *password
);
38 status_t
Send(const char *to
, const char *from
,
39 BPositionIO
*message
);
41 int32
ReceiveResponse(BString
&line
);
42 status_t
SendCommand(const char *cmd
);
45 status_t
_SendMessage(const entry_ref
& ref
);
46 status_t
_POP3Authentication();
50 BMessage fSettingsMessage
;
56 BString fServerName
; // required for DIGEST-MD5