Returns the text of the letter in accordance with the specified parameters.
function GetEMail(aHost: string; aUser: string; aPassword: string; aContains: string; aDelete: bolean; aIndex: integer): string;
//Get the first letter containing waspace test and delete it var emailtext := GetEmail('smtp.mail.ru','user','pass','waspace test',true,0);