checked permissions before emailing