Represents the mailbox User name in the email address.
property User: string;
User is a String property that represents the user name for the mailbox for the email address. The value in the User property is derived from the Address property, and represents the portion of the email Address that occurs before the '@' that indicates the host domain for the mailbox. User can return an empty string ('') when Address is blank, or when address does not contain an '@' character representing the Domain for the Address.
// var AEmail: TIdEmailAddressItem; AEmail.Text := '"John Doe" <firstname.lastname@example.org>'; // AEmail.Name contains 'John Doe' // AEmail.Address contains 'email@example.com' // AEmail.User contains 'jdoe' // AEmail.Domain contains 'some.net' AEmail.Name := 'Jane Doe'; AEmail.Address := 'firstname.lastname@example.org'; // AEmail.Text contains '"Jane Doe" <email@example.com>'
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.