dea2e3fd 11a3 504d 946d 09298fce08d6 - iAJTin/iExportEngine GitHub Wiki
Additional header content
Representing a server credential authentication.
System.Object
iTin.Export.Model.BaseModel(ServerCredentialModel)
iTin.Export.Model.ServerCredentialModel
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 ServerCredentialModel : BaseModel<ServerCredentialModel>VB
<SerializableAttribute>
Public Class ServerCredentialModel
Inherits BaseModel(Of ServerCredentialModel)The ServerCredentialModel type exposes the following members.
| Name | Description | |
|---|---|---|
![]() |
ServerCredentialModel | Initializes a new instance of the ServerCredentialModel class. |
| Name | Description | |
|---|---|---|
![]()
|
Domain | Gets or sets the domain or computer name that verifies the credential. |
![]()
|
Host | Gets or sets the name or IP address of the host used for SMTP transactions. |
![]() |
IsDefault | Gets a value indicating whether this instance is default. (Overrides BaseModel.IsDefault.) |
![]()
|
Name | Gets or sets the identifier name of credential. |
![]()
|
Password | Gets or sets the password for the user name associated with the credential. |
![]()
|
Port | Gets or sets the port used for SMTP transactions. |
![]() |
Properties | Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).) |
![]()
|
SSL | Gets or sets a value indicating whether uses Secure Sockets Layer (SSL) to encrypt the connection. |
![]()
|
UserName | Gets or sets the user name associated with the credential. |
| 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 ServerCredentialModel. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from BaseModel(T).) |
Belongs to: Credentials. For more information, please see ServerCredentialsModel.
ITEE Object Element Usage
<Credential/>Attributes
| Attribute | Optional | Description |
|---|---|---|
| Name | No | The identifier name of credential. |
| SSL | Yes | Determines whether uses Secure Sockets Layer (SSL) to encrypt the connection. The default is Yes. |
| Domain | Yes | The name of the domain associated with the credential. The default is an empty string (""). |
| Port | Yes | Port used for SMTP transactions. The default value is 25. |
| UserName | No | The user name associated with the credential. |
| Password | No | The password associated with the credential. |
| Host | No | The name or IP address of the host used for SMTP transactions. |
| 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>

