DNN-3186: Added Portal SMTP Functionality 

converted my patch from the old support site (DNN-9510) from vb to c#