send log to mail by agent.