System.Web 2.0.0.0 System.Object System.Web.UI.IStateManager System.ComponentModel.Bindable(false)

The class can be used by controls to create a object from a text file or a string that contains the body of the e-mail message. Use the class to simplify creating predefined e-mail messages to be sent by a control. If you want to send e-mail not using a control, see the class.

You can make text substitutions in the body of the e-mail message by passing to the method an instance that maps strings to their replacements.

The object created by the class is sent using the method of the class. To be able to send e-mail, you must configure an SMTP mail server in your Web.config file. For more information, see the <SMTP> element.

The class does not support data binding. Properties of the class cannot be bound to data using the <%# %> data-binding expression syntax.

Allows a control to create e-mail messages from text files or strings. This class cannot be inherited.

- Constructor
  To be added.

  Initializes a new instance of the class.

  2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue("")
  System.String To be added.

  The property specifies the location of the text file to use for the body of the e-mail message.

  The method uses its parameter to map the property to a path on the server. If the parameter points to a control on an .aspx page or to the page itself, the property points to a text file in the same directory as the .aspx page. For example, if the .aspx page is located at C:\inetpub\wwwroot\default.aspx, the control looks for the text file in the directory C:\inetpub\wwwroot.

  If the class is used in a user control contained in an .ascx file, the property points to a text file located in the same directory as the user control. For example, if the .aspx page is located at C:\inetpub\wwwroot\default.aspx and the user control is at C:\inetpub\wwwroot\controls\control.aspx, the object looks for the text file in the directory C:\inetpub\wwwroot\controls.

  Gets or sets the name of the file that contains text for the body of the e-mail message.

  2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue("")
  System.String To be added.

  The property contains a list of additional recipients of the e-mail message.

  If the property contains an improperly formed e-mail address, the method throws an exception and the e-mail message is not sent.

  Gets or sets a comma-separated list of e-mail addresses to send a copy (CC) of the message to.

  2.0.0.0
- Method
  System.Net.Mail.MailMessage `` `` ``

  The method creates a new object that can be sent using the method.

  The property must be set to indicate whether the mail message should be formatted as plain text () or HTML ().

  The parameter contains a comma-separated list of recipients of the e-mail message. If the parameter contains an improperly formatted Internet e-mail address, the method throws an exception and the e-mail message is not sent.

  The parameter is an instance that contains a list of strings to substitute. Strings are replaced in the order in which they were added to the collection, and they can overwrite earlier replacements.

  The parameter indicates which control is the parent of the control. It determines which directory to search for the text file specified in the property.

  Creates an e-mail message from a text file to send by means of SMTP (Simple Mail Transfer Protocol).

  The e-mail message from a text file.

  A comma-separated list of message recipients. An containing a list of strings and their replacement strings. The that owns this . 2.0.0.0
- Method
  System.Net.Mail.MailMessage `` `` `` ``

  The method creates a new object that can be sent with the method.

  The parameter contains a comma-separated list of recipients of the e-mail message. If the parameter contains an improperly formatted Internet e-mail address, the method throws an exception and the e-mail message is not sent.

  The parameter is an instance that contains a list of strings to substitute. Strings are replaced in the order in which they were added to the collection, and they can overwrite earlier replacements.

  The parameter contains the text of the e-mail message.

  The parameter indicates which control is the parent of the control. It determines which directory to search for the text file specified in the property.

  Creates an e-mail message with replacements from a text file to send by means of SMTP (Simple Mail Transfer Protocol).

  The e-mail message with replacements from a text file.

  The comma-separated list of recipients. An containing a list of strings and their replacement strings. The text of the e-mail message. The that owns this . 2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue("")
  System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)
  System.Web.UI.WebControls.EmbeddedMailObjectsCollection To be added.

  The items in the collection returned by the property represent items to embed in an e-mail message. These items can include image files such as company logos or other graphics.

  Gets a collection of instances, typically used to embed images in a object before sending an e-mail to a user.

  2.0.0.0
- Property
  System.ComponentModel.DefaultValue("")
  System.ComponentModel.NotifyParentProperty(true)
  System.String To be added.

  The property contains the e-mail address of the sender of the e-mail message. If the property is left blank, or contains an improperly formed e-mail address, the method throws an exception and the e-mail message is not sent.

  Gets or sets the e-mail address of the message sender.

  2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue(false)
  System.Boolean To be added.

  Use the property to specify whether the body of the e-mail message contains plain text or HTML markup.

  Gets or sets a value indicating whether the body of the e-mail is HTML.

  2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.Net.Mail.MailPriority To be added.

  The property indicates the relative priority of the e-mail message.

  Gets or sets the priority of the e-mail message.

  2.0.0.0
- Property
  System.ComponentModel.NotifyParentProperty(true)
  System.ComponentModel.DefaultValue("")
  System.String To be added.

  The property is used as the subject line of the e-mail message. It can be left empty.

  Gets or sets the subject line of the e-mail message.

  2.0.0.0
- Property
  2.0.0.0
  System.Boolean To be added.

  This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.

  The and properties are not saved in the property.

  Gets a value that indicates whether the server control is saving changes to its view state.

- Method
  2.0.0.0
  System.Void `` To be added.

  This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.

  Restores view-state information from a previous page request that was saved by the method.

- Method
  2.0.0.0
  System.Object

  This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.

  Saves any server control view-state changes that have occurred since the time the page was posted back to the server.

  The server control's current view state.

- Method
  2.0.0.0
  System.Void

  This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.

  Causes tracking of view-state changes to the server control so they can be stored in the server control's object.