AndrewG
AndrewG

Reputation: 1429

how can I use built-in ASP.NET templates for sending emails?

Is there any samples on how to use ASP.NET built-in templates out of the page, just for rendering text with params. For instance, to build email message.

thanks in advance.

Upvotes: 1

Views: 269

Answers (2)

Christopher Edwards
Christopher Edwards

Reputation: 6659

You could do this by making an ordinary aspx page be the template then having that page pull out querystring values and use them in the response. Then you'd just use http://www.systemnetmail.com/faq/4.8.aspx to call the aspx page.

Upvotes: 0

Claudio Redi
Claudio Redi

Reputation: 68400

You could use the class MailDefinition

Here you have a sample of how to use it.

Upvotes: 1

Related Questions