46c2fd97 c21d 54e8 bb0a d5358f48ad05 - iAJTin/iExportEngine GitHub Wiki
Additional header content
A Specialization of BaseBehaviorModel class.
Which Represents a email behavior.
System.Object
iTin.Export.Model.BaseModel(BaseBehaviorModel)
iTin.Export.Model.BaseBehaviorModel
iTin.Export.Model.MailBehaviorModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)
C#
[SerializableAttribute]
public class MailBehaviorModel : BaseBehaviorModelVB
<SerializableAttribute>
Public Class MailBehaviorModel
Inherits BaseBehaviorModelThe MailBehaviorModel type exposes the following members.
| Name | Description | |
|---|---|---|
![]() |
MailBehaviorModel | Initializes a new instance of the MailBehaviorModel class. |
| Name | Description | |
|---|---|---|
![]()
|
Async | Gets or sets a value indicating whether to execute asynchronously the behavior. |
![]()
|
CanExecute | Gets or sets a value indicating whether executes behavior. (Inherited from BaseBehaviorModel.) |
![]()
|
Default | Gets a reference to default behavior. |
![]() |
IsDefault | Gets a value indicating whether this instance is default. (Overrides BaseBehaviorModel.IsDefault.) |
![]()
|
Messages | Gets or sets collection of e-mail messages. |
![]() |
Properties | Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).) |
![]()
|
Server | Gets or sets a reference to mail server configuration. |
| Name | Description | |
|---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Execute(IWriter) | Execute behavior. (Inherited from BaseBehaviorModel.) |
![]() |
Execute(IWriter, ExportSettings) | Execute behavior. (Inherited from BaseBehaviorModel.) |
![]() |
ExecuteBehavior | Code for execute download behavior. (Overrides BaseBehaviorModel.ExecuteBehavior(IWriter, ExportSettings).) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetStaticBindingValue | Gets the static binding value by reflection. (Inherited from BaseModel(T).) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
SaveToFile(String) | Saves to file. (Inherited from BaseModel(T).) |
![]() |
SaveToFile(String, Exception) | Serializes current BaseModel object into file (Inherited from BaseModel(T).) |
![]() |
Serialize | Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).) |
![]() |
SetOwner | Sets a reference to the owner object that contains this instance. (Inherited from BaseBehaviorModel.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from BaseModel(T).) |
Belongs to: Behaviors. For more information, please see BehaviorsModel.
ITEE Object Element Usage
<Mail .../>
<Server/>
<Messages/>
</Mail>Attributes
| Attribute | Optional | Description |
|---|---|---|
| CanExecute | Yes | Determines whether executes behavior. The default is Yes. |
| Async | Yes | Determines whether to execute asynchronously the behavior. The default is Yes. |
| Element | Description |
|---|---|
| Server | Mail server configuration. |
| Messages | Collection of e-mail messages. Each element represents an e-mail message. |
| Comma-Separated Values CsvWriter |
Tab-Separated Values TsvWriter |
SQL Script SqlScriptWriter |
XML Spreadsheet 2003 Spreadsheet2003TabularWriter |
|---|---|---|---|
| X | X | X | X |
X value indicates that the writer supports this element.
XML
<Behaviors>
<Downdload LocalCopy="Yes"/>
<TransformFile Execute="Yes" Indented="Yes" Save="Yes" Path="~\Output"/>
<Mail Execute="Yes" Async="Yes" >
<Server>
<Credentials>
<Credential SSL="Yes" Name="one" UserName="[email protected]" password="pwd" Host="smtp.gmail.com"/>
</Credentials>
</Server>
<Messages>
<Message Credential="one" Send="Yes">
<From Address="[email protected]"/>
<To Addresses="[email protected] [email protected]"/>
<CC Addresses="[email protected] [email protected]"/>
<Subject>New report</Subject>
<Body>Hello, this is your report, sending from iTin.Export</Body>
<Attachments>
<Attachment Path="C:\Users\somefile.txt"/>
<Attachment Path="C:\Users\Downloads\Photos Sample.zip"/>
</Attachments>
</Message>
</Messages>
</Mail>
</Behaviors>

