pop3.htm
来自「pop3接收邮件通信程序」· HTM 代码 · 共 816 行 · 第 1/3 页
HTM
816 行
“128.56.22.8”.</font></p>
<p><font face="Arial"><em>pszUser</em> This is the POP3 user name of the mailbox.</font></p>
<p><font face="Arial"><em>pszPassword</em> This is the password for the POP3 mailbox.</font></p>
<p><font face="Arial"><em>nPort</em> This is the port number on which to connect. The
default value is 110 which is the default POP3 port number.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Call this member function to establish a connection to a POP3
mailbox.</font></p>
<p><strong><font face="Arial">See Also</font></strong></p>
<p><a href="#Disconnect"><font face="Arial">CPop3Connection::Disconnect</font></a></p>
<p> </p>
<p><a name="Disconnect"></a><big><strong><font face="Arial">CPop3Connection::Disconnect</font></strong></big></p>
<p><strong><font face="Arial">BOOL CPop3Connection::Disconnect();</font></strong></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial">None.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">The corollary function of Connect.</font></p>
<p><strong><font face="Arial">See Also</font></strong></p>
<p><a href="#Connect"><font face="Arial">CPop3Connection::Connect</font></a></p>
<p> </p>
<p><a name="Statistics"></a><big><strong><font face="Arial">CPop3Connection::Statistics</font></strong></big></p>
<p><font face="Arial"><strong>BOOL CPop3Connection::Statistics(int& </strong><em>nNumberOfMails</em><strong>,
int& </strong><em>nTotalMailSize</em><strong>);</strong></font></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial"><em>nNumberOfMails</em> Upon a successful return this will contain
the number of mails waiting in the mailbox.</font></p>
<p><font face="Arial"><em>nTotalMailSize</em> Upon a successful return this will contain
the size in bytes (aka Octets) of all mails waiting in the mailbox.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Retrieves the statistics for the Mailbox by issuing the
"STAT" command.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#GetMessageSize"><font face="Arial">CPop3Connection::GetMessageSize</font></a></p>
<p> </p>
<p><a name="Delete"></a><big><strong><font face="Arial">CPop3Connection::Delete</font></strong></big></p>
<p><font face="Arial"><strong>BOOL CPop3Connection::Delete(int </strong><em>nMsg</em><strong>);</strong></font></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial"><em>nMsg</em> The message number of the message to delete. This
value starts at 1.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Marks a message as "to be deleted" by issuing the
"DELE" command.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#Reset"><font face="Arial">CPop3Connection::Reset</font></a></p>
<p> </p>
<p><a name="GetMessageSize"></a><big><strong><font face="Arial">CPop3Connection::GetMessageSize</font></strong></big></p>
<p><font face="Arial"><strong>BOOL CPop3Connection::GetMessageSize(int </strong><em>nMsg</em><strong>,
DWORD& </strong><em>dwSize</em><strong>);</strong></font></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial"><em>nMsg</em> The message number of the message to retrieve the size
of.</font></p>
<p><font face="Arial"><em>dwSize</em> Upon a successful return this will contain the size
in bytes of the specified message.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Retrieves the size of a specified message. Internally this will
issue the "LIST" command if required.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#Retrieve"><font face="Arial">CPop3Connection::Retrieve</font></a></p>
<p> </p>
<p><a name="GetMessageID"></a><big><strong><font face="Arial">CPop3Connection::GetMessageID</font></strong></big></p>
<p><font face="Arial"><strong>BOOL CPop3Connection::GetMessageID(int </strong><em>nMsg</em><strong>,
CString& </strong><em>sID</em><strong>);</strong></font></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial"><em>nMsg</em> The message number of the message to retrieve the ID
of.</font></p>
<p><font face="Arial"><em>sID</em> Upon a successful return this will contain the ID of
the specified message as a string.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Retrieves the ID of a specified message. Internally this will issue
the "UIDL" command if required. As "UIDL" is an optional POP3 command,
your client app should handle the return value if it is to correctly work on all POP3
servers.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#UIDL"><font face="Arial">CPop3Connection::UIDL</font></a></p>
<p> </p>
<p><a name="Retrieve"></a><big><strong><font face="Arial">CPop3Connection::Retrieve</font></strong></big></p>
<p><font face="Arial"><strong>BOOL CPop3Connection::Retrieve(int </strong><em>nMsg</em><strong>,
CPop3Message& </strong><em>message</em><strong>);</strong></font></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial"><em>nMsg</em> The message number of the message to retrieve the size
of.</font></p>
<p><font face="Arial"><em>message</em> Upon a successful return this will contain the POP3
messages.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Retrieves the specified message by issuing the "RETR"
command.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#GetMessageSize"><font face="Arial">CPop3Connection::GetMessageSize</font></a></p>
<p> </p>
<p><a name="GetMessageHeader"></a><big><strong><font face="Arial">CPop3Connection::GetMessageHeader</font></strong></big></p>
<p><font face="Arial"><strong>BOOL CPop3Connection::GetMessageHeader(int </strong><em>nMsg</em><strong>,
CPop3Message& </strong><em>message</em><strong>);</strong></font></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial"><em>nMsg</em> The message number of the message to retrieve the
header of.</font></p>
<p><font face="Arial"><em>sID</em> Upon a successful return this will contain the POP3
messages.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Retrieves the header of a specified message. Internally this will
issue the "TOP" command if required. As "TOP" is an optional POP3
command, your client app should handle the return value if it is to correctly work on all
POP3 servers.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#GetMessage"><font face="Arial">CPop3Connection::GetMessage</font></a></p>
<p> </p>
<p><a name="Reset"></a><big><strong><font face="Arial">CPop3Connection::Reset</font></strong></big></p>
<p><strong><font face="Arial">BOOL CPop3Connection::Reset();</font></strong></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial">None.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Resets all messages which were previously marked as deleted. i.e. it
undoes the work of all the DELE commands in this session. For further information about
how messages are deleted in POP3, please refer to the RFC.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
<p><a href="#Delete"><font face="Arial">CPop3Connection::Delete</font></a></p>
<p> </p>
<p><a name="UIDL"></a><big><strong><font face="Arial">CPop3Connection::UIDL</font></strong></big></p>
<p><strong><font face="Arial">BOOL CPop3Connection::UIDL();</font></strong></p>
<p class="rl"><strong><font face="Arial">Return Value</font></strong></p>
<p class="t"><font face="Arial">If the function succeeds, the return value is TRUE. If the
function fails, the return value is FALSE. To get extended error information, call
::GetLastError.</font></p>
<p><font face="Arial"><strong>Parameters</strong></font></p>
<p><font face="Arial">None.</font></p>
<p><font face="Arial"><strong>Remarks</strong></font></p>
<p><font face="Arial">Sends the "UIDL" command which retrieves the ID for a
specified message. As "UIDL" is an optional POP3 command, your client app should
handle the return value if it is to correctly work on all POP3 servers.</font></p>
<p><strong><font face="Arial">See Also </font></strong></p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?