Mark mail sent only if it success
Add hostnames in mail subject