The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SMTPConfig.cs 711B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Net.Mail;
  7. namespace Teknik.Configuration
  8. {
  9. public class SMTPConfig
  10. {
  11. public string Host { get; set; }
  12. public int Port { get; set; }
  13. public string Username { get; set; }
  14. public string Password { get; set; }
  15. public bool SSL { get; set; }
  16. public SMTPConfig()
  17. {
  18. SetDefaults();
  19. }
  20. public void SetDefaults()
  21. {
  22. Host = string.Empty;
  23. Port = 25;
  24. Username = string.Empty;
  25. Password = string.Empty;
  26. SSL = false;
  27. }
  28. }
  29. }