cadecb15 810c f89c f934 b20d7baf91b4 - iAJTin/iExportEngine GitHub Wiki
Additional header content
Represents an e-mail message.
System.Object
iTin.Export.Model.BaseModel(MailMessageModel)
iTin.Export.Model.MailMessageModel
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 MailMessageModel : BaseModel<MailMessageModel>VB
<SerializableAttribute>
Public Class MailMessageModel
Inherits BaseModel(Of MailMessageModel)The MailMessageModel type exposes the following members.
| Name | Description | |
|---|---|---|
![]() |
MailMessageModel | Initializes a new instance of the MailMessageModel class. |
| Name | Description | |
|---|---|---|
![]()
|
Attachments | Gets or sets the attachment collection used to store data attached to this e-mail message. |
![]()
|
Body | Gets or sets the message body. |
![]()
|
CC | Gets or sets address collection that contains the carbon copy (CC) recipients for this e-mail message. |
![]()
|
Credential | Gets or sets name of credential to use for this message. |
![]()
|
From | Gets or sets the from address for this e-mail message. |
![]() |
IsDefault | Gets a value indicating whether this instance contains the default. (Overrides BaseModel.IsDefault.) |
![]() |
Properties | Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).) |
![]()
|
Send | Gets or sets a value that determines whether to send the message. |
![]()
|
Subject | Gets or sets the subject line for this e-mail message. |
![]()
|
To | Gets or sets the address collection that contains the recipients of this e-mail message. |
| Name | Description | |
|---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
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 the element that owns this MailMessageModel. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from BaseModel(T).) |
Belongs to: Messages. For more information, please see MailMessagesModel.
ITEE Object Element Usage
<Message/>Attributes
| Attribute | Optional | Description |
|---|---|---|
| Send | Yes | Determines whether to send the e-mail. The default is Yes. |
| Credential | No | The name of credential to use for this message. |
| Element | Description |
|---|---|
| Attachments | The attachment collection used to store data attached to this e-mail message. Each element represents an attachment to an e-mail. |
| From | The from address for this e-mail message. |
| To | The address collection that contains the recipients of this e-mail message. |
| CC | The address collection that contains the carbon copy (CC) recipients for this e-mail message. |
| Subject | The subject line for this e-mail message. |
| Body | The message body. |
| 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>

