Skip to content

9805d50a b2f1 afad 4d38 44e0bcf8b0f4

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

MailMessageModel.Send Property

Additional header content

Gets or sets a value that determines whether to send the 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 YesNo Send { get; set; }

VB

Public Property Send As YesNo
	Get
	Set

Property Value

Type: YesNo
Yes if sends the message; otherwise, No. The default is Yes.

Exceptions

 

Exception Condition
InvalidEnumArgumentException The value specified is outside the range of valid values.

Remarks

ITEE Object Element Usage

<Message Send="Yes|No" ...>
...
</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="address@gmail.com" 
                    Password="pwd" 
                    Host="smtp.gmail.com"/>
      </Credentials>
    </Server>
    <Messages>
      <Message Credential="one" Send="Yes">
        <From Address="emailaddress-one@gmail.com"/>
        <To Addresses="emailaddress-two@hotmail.com emailaddress-three@hotmail.com"/>
        <CC Addresses="emailaddress-four@hotmail.com emailaddress-five@hotmail.com"/>
        <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