Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            string BaseURL = "http://172.20.51.51:44306";

            MailTaskSubmitter client = new MailTaskSubmitter();

            client.BaseUrl = BaseURL;
            string key  = "8afde5db-627c-41e3-9c28-26237c31b726";
            string from = "*****@*****.**";
            string to   = "*****@*****.**";

            client.SendEmailTask(key, "EI001", from, to, "Test ME", "THIS IS ME");

            var success = client.Success;
        }
Ejemplo n.º 2
0
        private void BtnSend_Click(object sender, EventArgs e)
        {
            string from    = txtFrom.Text.Trim();
            string to      = txtTo.Text.Trim();
            string subject = txtSubject.Text.Trim();
            string body    = txtBody.Text;

            var mail = new MailTaskSubmitter();

            mail.BaseUrl = "http://172.20.51.51:44306";

            mail.SendEmailTask(_url, key, "EI002", from, to, subject, body);

            _taskID        = mail.TaskId;
            lblTaskID.Text = _taskID;
        }