error check on mail path template