aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.TFS/ITeamFoundationEmailClient.cs
blob: 080d9fa932110f36f6b27da68576ab45bcaa786b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Tango.TFS
{
    /// <summary>
    /// Represents an email client for sending emails to team members.
    /// </summary>
    public interface ITeamFoundationEmailClient
    {
        /// <summary>
        /// Gets or sets the SMTP address.
        /// </summary>
        String SMTP { get; set; }

        /// <summary>
        /// Gets or sets the SMTP port.
        /// </summary>
        int Port { get; set; }

        /// <summary>
        /// Gets or sets the credentials used to authenticate against the SMTP server.
        /// </summary>
        NetworkCredential Credentials { get; set; }

        /// <summary>
        /// Sends the specified email.
        /// </summary>
        /// <param name="email">The email.</param>
        /// <returns></returns>
        Task Send(Email email);
    }
}