Adds crnl for smtp handling

replaces pull request for #9