To send email, you can simply use the following Razor (C#) statements to call your DotNetNuke Sendmail service using the same SMTP host as your portal:
@{
DotNetNuke.Services.Mail.Mail.SendMail("from@example.com", "to@example.com", "bcc@example.com", "Subject", "TextBody", "", "", "", "", "", "");
}