add Log info for main function
modify mail send user