ToAddr Property
Contains comma-separated list of email addresses
of "To:" recipients.
Example of complex ToAddr (3 recipients, 2 of them also have friendly
names, third address is "pure" address):
"John Doe" <jdoe@host1.com>, Mike
Douglas <m.douglas@pbox.foo.com> (Foo Company), nofriendlyname@server.com
Set AddressDelimiter if you want to use another string (not a comma character) to delimit individual addresses.
To get friendly names only, examine ToFriendlyName
property. To get pure email addresses, examine PureToAddr
property.
Value Type: | String | |
Parameters: | None | |
Remarks: | This property is read-only |
Usage example:
' This sample displays "To:" for the last message in Inbox Dim Mailer, Envelopes, Envelope '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 Mailer.LogFilePath = "C:\Temp\imap4_log.txt" Mailer.ClearLog Mailer.LicenseKey = "put your license key here" If Mailer.Connect("mailserver.com", 143, "MyName", "MyPassword") Then If Mailer.SelectMailbox("Inbox") Then Set Envelopes = Mailer.RetrieveEnvelopes(Mailer.MessageCount, Mailer.MessageCount, False) If Not Envelopes Is Nothing Then For Each Envelope In Envelopes MsgBox Envelope.ToAddr Next End If End If Mailer.Disconnect End If
See Also:
BCCAddr
Property
CCAddr Property
FromAddr Property
PureToAddr Property
ToFriendlyName Property
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.