Represents the body of the message. You can specify text, HTML, or both. If you use
both, then the message should display correctly in the widest variety of
email clients.
Represents the body of the message. You can specify text, HTML, or both. If you use
both, then the message should display correctly in the widest variety of
email clients.
Declaration Syntax
C# |
public class Body
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
Body()()()() |
Default constructor for a new Body object. Callers should use the
properties to initialize this object after creating it.
| |
Body(Content) |
Constructs a new Body object.
Callers should use the properties initialize any additional object members.
| |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Html |
Gets and sets the property Html.
The content of the message, in HTML format. Use this for email clients that can process HTML. You can include clickable links, formatted text, and much more in an HTML message. | |
Text |
Gets and sets the property Text.
The content of the message, in text format. Use this for text-based email clients, or clients on high-latency networks (such as mobile devices). | |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithHtml(Content) | Obsolete.
Sets the Html property
| |
WithText(Content) | Obsolete.
Sets the Text property
|
Inheritance Hierarchy
Object | |
Body |