I'm using java api mail. i tested gmail. its woring fine. and also am testing other domain server(testserver.com). its working under same domain(testserver.com to testserver.com).but when i try to send from testserver.com domain server to other domain like gmail or hotmail or yahoo means it showing exection.