Content Studio Web Content Management System
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
[This is preliminary documentation and is subject to change.]
Sends a mail through the mail server on the web server.
Namespace: ContentStudio.Site
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void SendMail( string serverName, string from, string[] to, string subject, string[] bcc, string[] cc, string body, bool plaintext, string userName, string password )
Parameters
- serverName
- Type: SystemString
The name of the mail server to use. - from
- Type: SystemString
The email address of the sender. - to
- Type: SystemString
An array of email addresses of the main recipients to the mail message. This parameter can be null. - subject
- Type: SystemString
The subject line of the mail. - bcc
- Type: SystemString
An array of email addresses of the recipients of a blind carbon copy (BCC). These recipients are invisible to other recipients. This parameter can be null. - cc
- Type: SystemString
An array of email addresses of the recipients of a carbon copy (CC). These recipients are visible to other recipients. This parameter can be null. - body
- Type: SystemString
The content of the mail to send - plaintext
- Type: SystemBoolean
Indicates if the Body contains plain text (true) or HTML (false). - userName
- Type: SystemString
The name of the account under whose credentials the mail message is sent. This parameter can be null. - password
- Type: SystemString
The password of the account under whose credentials the mail message is sent. This parameter can be null.
See Also