IdSMTP1.Username:='test@mail.ru'; // ваш логин IdSMTP1.Password:='test'; // ваш пароль IdSMTP1.Authenticate;