Custom Tags
web_chkMail
web_Image
web_QueryIpHost
web_Print
web_Pager
webReport
webObject
webPGP
web_ListDir
E-Commerce Tags
web_LinkPoint
web_ICVerify
web_Cybercash
web_DirectCredit
ODBC Tags
web_ODBCDrivers
web_ODBCDsns
web_DsnAttrs
web_ConfigDsn

<web_ChkMail> Tag

Description
Contacts the mail server (IMAP server) to get the total emails and new emails in a particular user's inbox.

Syntax
<web_ ChkMail Name=... IMAPHost=... Port=... UserID=... Password=...>

Remarks
The parameter Port is optional. The default port is 143. Parameter Name functions just like the Name parameter in <webDbQuery Name=...>. For <web_ ChkMail...>, the result has three columns. They are: Result, TotalEmail, NewEmail. In order to run the example, use Web+ Server Manager to add the following into webpsvr. ini's [Custom Tag] section.

-------------------------------
TagName1= ChkMail
DllPath1= c:\ ztemp\ chkmail. dll
FuncName1= chkMail
-------------------------------

web_ ChkMail adopts IMAP4 protocal instead of POP3 protocal, and in fact IMAP4 is much better than POP3 in performance and functionality. This means you can use <webIMAP ...> instead of <webPOP ..> if needed (PINE use IMAP, not POP, and so it is fast to get the total email list)

Example
<web_ChkMail Name=" test" IMAPHost=" mail.yahoo.com" UserID=" guest" Password=secret>
<webPrint>
<webIf #test.result#>
Total Emails=#test.TotalEmail#<BR>
New Emails=#test.NewEmail#<BR>
<webElse>
Error in Checking Emails<BR>
#Error.ErrorMsg#<BR>
</
webIf>
</webPrint>

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com