コード例 #1
0
 public HttpResponseMessage SendDelivered(string messageId = "1111", string mailingId = "1111", string address = "*****@*****.**")
 {
     var delivered = new Delivered()
     {
         DateTime = DateTime.Now,
         MailingId = mailingId,
         MessageId = messageId,
         Address = address,
         ServerId = ServerId,
         SecretKey = SecretKey,
         RemoteMta = "mx1.example.com",
         Response = "250 2.6.0 Message received and queued.",
         LocalIp = "127.0.0.1"
     };
     return _client.PostAsync("/api/EmailEvent/", delivered.ToEncodedContent()).Result;
 }
コード例 #2
0
 private void OnDelivered(Delivered model)
 {
     Console.WriteLine(model.ToString());
 }