Exemplo n.º 1
0
 public static void UseOpenTrack(this SmtpHeader header)
 {
     header.AddFilter("opentrack", new Dictionary <string, object>
     {
         { "enable", 1 }
     });
 }
Exemplo n.º 2
0
 public static void UseBypassListManagement(this SmtpHeader header)
 {
     header.AddFilter("bypass_list_management", new Dictionary <string, object>
     {
         { "enable", 1 }
     });
 }
Exemplo n.º 3
0
 public static void UseGravatar(this SmtpHeader header)
 {
     header.AddFilter("gravatar", new Dictionary <string, object>
     {
         { "enable", 1 }
     });
 }
Exemplo n.º 4
0
 public static void UseForwardSpam(this SmtpHeader header, string email)
 {
     header.AddFilter("forwardspam", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "email", email }
     });
 }
Exemplo n.º 5
0
 public static void UseBcc(this SmtpHeader header, string email)
 {
     header.AddFilter("bcc", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "email", email }
     });
 }
Exemplo n.º 6
0
 public static void UseDkim(this SmtpHeader header, string domain, bool useFrom)
 {
     header.AddFilter("dkim", new Dictionary <string, object>
     {
         { "domain", domain },
         { "use_from", useFrom }
     });
 }
Exemplo n.º 7
0
 public static void UseTemplate(this SmtpHeader header, string html)
 {
     header.AddFilter("template", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "text/html", html },
     });
 }
Exemplo n.º 8
0
 public static void UseTemplateEngine(this SmtpHeader header, string templateId)
 {
     header.AddFilter("templates", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "template_id", templateId },
     });
 }
Exemplo n.º 9
0
 public static void UseSpamCheck(this SmtpHeader header, double maxscore, string url)
 {
     header.AddFilter("spamcheck", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "maxscore", maxscore },
         { "url", url }
     });
 }
Exemplo n.º 10
0
 public static void UseFooter(this SmtpHeader header, string html, string text)
 {
     header.AddFilter("footer", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "text/html", html },
         { "text/plain", text }
     });
 }
Exemplo n.º 11
0
 public static void UseDomainKeys(this SmtpHeader header, string domain, bool sender)
 {
     header.AddFilter("domainkeys", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "domain", domain },
         { "sender", sender }
     });
 }
Exemplo n.º 12
0
 public static void UseSubscriptionTrack(this SmtpHeader header, string html, string text, string replace)
 {
     header.AddFilter("subscriptiontrack", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "text/html", html },
         { "text/plain", text },
         { "replace", replace }
     });
 }
Exemplo n.º 13
0
 public static void UseGoogleAnalytics(this SmtpHeader header, string source, string medium, string term, string content, string campaign)
 {
     header.AddFilter("ganalytics", new Dictionary <string, object>
     {
         { "enable", 1 },
         { "utm_source", source },
         { "utm_medium", medium },
         { "utm_term", term },
         { "utm_content", content },
         { "utm_campaign", campaign }
     });
 }