Search

Index

Revindex Task Scheduler

Send email (Razor C#)

Last updated on 2015-04-17 1 mins. to read

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", "", "", "", "", "", "");
}


Comments


Powered by Revindex Wiki