MailFormSendMail Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Sends a mail with specific content and settings. Use this method if you want to customize the content of the mail, instead of calling the Invoke method.

Namespace: ContentStudio.Site.ActiveScripting.Misc
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void SendMail(
	string content
)

Parameters

content
Type: SystemString
The body text of the mail
Examples

The following code demonstrates how to call the SendMail method.
MailForm mf = new MailForm();
mf.ServerName = "mailserver";
mf.StaticMailTo = "info@contentstudio.se";
mf.SendMail("Hello " + Request.Form["name"]);
See Also

Reference