Skip to content

49cc7504 5e04 f686 6339 8189ba84f822

Fernando Garcia edited this page May 8, 2018 · 1 revision

MailMessageAttachmentModel Class

Additional header content

Represents an attachment of an e-mail.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(MailMessageAttachmentModel)
    iTin.Export.Model.MailMessageAttachmentModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[SerializableAttribute]
public class MailMessageAttachmentModel : BaseModel<MailMessageAttachmentModel>

VB

<SerializableAttribute>
Public Class MailMessageAttachmentModel
	Inherits BaseModel(Of MailMessageAttachmentModel)

The MailMessageAttachmentModel type exposes the following members.

Constructors

 

Name Description
Public method MailMessageAttachmentModel Initializes a new instance of the MailMessageAttachmentModel class
  Back to Top

Properties

 

Name Description
Public property IsDefault Gets a value indicating whether this instance contains the default. (Overrides BaseModel.IsDefault.)
Public propertyCode example Path Gets or sets the path to the file name you want to attach.
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
  Back to Top

Methods

 

Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetStaticBindingValue Gets the static binding value by reflection. (Inherited from BaseModel(T).)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SaveToFile(String) Saves to file. (Inherited from BaseModel(T).)
Public method SaveToFile(String, Exception) Serializes current BaseModel object into file (Inherited from BaseModel(T).)
Public method Serialize Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).)
Public method SetOwner Sets the MailMessageAttachmentsModel that owns this MailMessageAttachmentModel.
Public method ToString Returns a string that represents the current object. (Inherited from BaseModel(T).)
  Back to Top

Remarks

Belongs to: Attachments. For more information, please see MailMessageAttachmentsModel. TEE Object Element Usage

<Attachment/>

Attributes

Attribute Optional Description
Path No Path to the file name you want to attach. Requires full file path.
Compatibility table with native writers.
Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
Spreadsheet2003TabularWriter
X X X X
X

Examples

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>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally