dont send mail when not active
code format