Search results for 'Copy'. 1 post(s) found.

  1. 2007/09/18 Extracting the domain (host) name from an e-mail address
2007/09/18 08:26

Extracting the domain (host) name from an e-mail address


If you have an email as a string value and want to extract only the domain (host) name from it, like in: "delphi.guide@about.com" - domain name = "about.com", you can use the next function:

//extract doman name from an email address
function EmailDomain(const email: string):string;
var
  Pos_AT : integer;
begin
  Pos_AT := Pos('@', email) ;
  Result := Copy(email, Pos_AT + 1, Length(email) - Pos_AT)
end;

Trackback 6 Comment 0

Trackback : Cannot send a trackbact to this post.

  1. Subject Lexapro.

    Tracked from Lexapro and alcohol. 2009/02/08 18:29 delete

    Can you take lexapro while pregnant.

  2. Subject Viagra.

    Tracked from Viagra canada. 2009/02/11 22:31 delete

    Buy viagra.

  3. Subject Viagra.

    Tracked from Re viagra cello. 2009/03/01 14:04 delete

    Viagra. Generic viagra no prescription. Buy viagra.

  4. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 02:55 delete

    moneyideas

  5. Subject different money making ideas

    Tracked from moneyideas 2010/01/29 11:51 delete

    moneyideas

  6. Subject different money making ideas

    Tracked from moneyideas 2010/01/31 16:40 delete

    moneyideas