Email Properties

MSBuild Extension Pack

Email Properties MSBuild Extension Pack Help 4.0.12.0

The Email type exposes the following members.

Properties

  Name Description
Public property Attachments
An Item Collection of full paths of files to attach to the email.
Public property Body
The body of the email.
Public property EnableSsl
Sets whether to EnableSsl
Public property Format
Sets the format of the email. Default is HTML
Public property MailFrom
The email address to send the email from.
Public property MailTo
Sets the Item Colleciton of email address to send the email to.
Public property Port
Sets the port to use. Ignored if not specified.
Public property Priority
The priority of the email. Default is Normal (also available High and Low).
Public property SmtpServer
The SMTP server to use to send the email.
Public property Subject
The subject of the email.
Public property UseDefaultCredentials
Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. DefaultCredentials represents the system credentials for the current security context in which the application is running. Default is true.

If UserName and UserPassword is supplied, this is set to false. If UserName and UserPassword are not supplied and this is set to false then mail is sent to the server anonymously.

If you provide credentials for basic authentication, they are sent to the server in clear text. This can present a security issue because your credentials can be seen, and then used by others.

Top
See Also

Reference