AddressDelimiter Property
Specifies the delimiter of addresses which will be used when returning values of PureFromAddr,
PureToAddr, PureCCAddr,
ToFriendlyName and other similar properties (read-only properties which return various parts of email addresses). The default value is ", " (comma followed by space).
This property is useful if you have "," chars in the values of e-mail addresses or display names and you need to split the entire string to get
individual addresses. You can assign it to a somewhat like "{|}" (which is highly unlikely to appear in addresses) and split by this value.
Value Type: | String | |
Parameters: | None |
Usage example:
Dim Mailer, Msg, ToRecipients, SingleTo 'Using visual basic to create object Set Mailer = CreateObject("MailBee.POP3") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.POP3") 'In ASP use Response.Write instead of MsgBox Mailer.LicenseKey = "put your license key here" Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword" If Mailer.Connected Then If Mailer.MessageCount > 0 Then Set Msg = Mailer.RetrieveSingleMessage(1) If Not Msg Is Nothing Then Msg.AddressDelimiter = "{|}" ToRecipients = Split(Msg.PureToAddr, "{|}") For Each SingleTo In ToRecipients MsgBox SingleTo Next End If End If Mailer.Disconnect End If
See Also:
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.