added end notificitaion code

Will the properties - from-address, mail host, mail port and timeouts change for each query? I don't think so. Can you move them constructor?
whether mail nofify can change for each query. It should be read from query config instead of server conf.