Uses logger to print TEST_MODE statement in mail package client

[#77890200]