SmartParsing Property
Enables or disables MailBee's ability to better handle incorrect responses from IMAP servers which are not fully standards-compliant.
When SmartParsing property is set to True, MailBee performs some additional checks when parsing data from the server and sends data to the server in blocks of smaller size (in the case of APPEND command). This slightly reduces performance ut allows MailBee to tolerate many not-well written mail servers. Default is False. Setting this property to True can be used for troubleshooting.
Value Type: | Boolean | |
Parameters: | None |
Usage example:
Dim Mailer 'Using visual basic to create object Set Mailer = CreateObject("MailBee.IMAP4") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.IMAP4") 'In ASP use Response.Write instead of MsgBox Mailer.EnableLogging = True ' Logging helps to discover any problems Mailer.LogFilePath = "C:\Temp\imap4_log.txt" Mailer.LicenseKey = "put your license key here" Mailer.SmartParsing = True ' Make it easier for not well written smail server to accept the message being uploaded If Mailer.Connect("mailserver.com", 143, "MyName", "MyPassword") Then ' Upload message from mail.eml file keeping defaults for datetime and flags If Mailer.AppendMessage("Inbox", "C:\mail.eml", , , 1) Then MsgBox "Message uploaded successfully" End If Mailer.Disconnect Else MsgBox Mailer.ErrDesc End If
See Also:
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.