thank you John. CDO is not a part of windows10.i downloaded it and fails to install. it have a prerequire to install first outlook2007 i dont know if cdo can gather gmail inbox contents programmatly and solve my problem....Maybe with outlook installed.