[This is preliminary documentation and subject to change.]
Sends an SMTP message.
For a list of all members of this type, see MailTask Members.
System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.MailTask
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Text and text files to include in the message body may be specified as well as binary attachments.
Sends an email from nant@sourceforge.net
to three recipients with a subject about the attachments. The body of the message will be the combined contents of all .txt
files in the base directory. All zip files in the base directory will be included as attachments. The message will be sent using the smtpserver.anywhere.com
SMTP server.
<mail from="nant@sourceforge.net" tolist="recipient1@sourceforge.net" cclist="recipient2@sourceforge.net" bcclist="recipient3@sourceforge.net" subject="Msg 7: With attachments" mailhost="smtpserver.anywhere.com"> <files> <include name="*.txt" /> </files> <attachments> <include name="*.zip" /> </attachments> </mail>
Namespace: NAnt.Core.Tasks
Assembly: NAnt.Core (in NAnt.Core.dll)
MailTask Members | NAnt.Core.Tasks Namespace