Mail Class

MSBuild

Sends an email message


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class Mail
    Inherits Task
C#
public class Mail : Task
C++
ref class Mail : Task
J#
public class Mail extends Task
JScript
public class Mail extends Task

Example

Example of sending an email.

 Copy Code
            <Target Name="Mail">
                <Mail SmtpServer="localhost"
                    To="[email protected]"
                    From="[email protected]"
                    Subject="Test Mail Task"
                    Body="This is a test of the mail task." />
            </Target>
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.Mail

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.