CDB-3949 Send an email upon completion of import

@Kartones can you please review? thanks!
@Kartones this is where the decission is made about sending or not the mail