Skip to content

1a2d2312 7370 7c3c dc31 e3a8cb06f12f

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

MailMessageModel.To Property

Additional header content

Gets or sets the address collection that contains the recipients of this e-mail message.

Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public MailMessageToModel To { get; set; }

VB

Public Property To As MailMessageToModel
	Get
	Set

Property Value

Type: MailMessageToModel
A MailMessageToModel that contains the recipients of this e-mail message.

Remarks

ITEE Object Element Usage

<Message ...>
  <To/>
  ...
</Message>

Compatibility table with native writers.

Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
Spreadsheet2003TabularWriter
X X X X
A X value indicates that the writer supports this element.

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

MailMessageModel Class
iTin.Export.Model Namespace

Clone this wiki locally