@alexandrad27705 Restarting the com.day.cq.cq-mailer bundle in the
environment was the solution that worked for me. The
MessageGatewayService contains a hashSet of gateways. If you delete or
move your Day CQ Mail Service configuration, a new gateway is added to
the hashSet. The messageGatewayService.getGateway() only retrieves one
DefaultMailService from the hashSet, and it could be one with cfg null
inside, although there exists one configured correctly. Only way to
clean this up is by restarti...