EmailExportParams.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. namespace FastReport.Web
  2. {
  3. /// <summary>
  4. /// SMTP server options for sending the report by mail
  5. /// </summary>
  6. public sealed class EmailExportOptions
  7. {
  8. /// <summary>
  9. /// Determines whether to enable the SSL protocol.
  10. /// </summary>
  11. /// <remarks>
  12. /// The default value for this property is <b>false</b>.
  13. /// </remarks>
  14. public bool EnableSSL { get; set; }
  15. /// <summary>
  16. /// SMTP account username.
  17. /// </summary>
  18. /// <remarks>
  19. /// Specify the <see cref="Username"/> and <see cref="Password"/> properties if your host requires authentication.
  20. /// </remarks>
  21. public string Username { get; set; }
  22. /// <summary>
  23. /// Template that will be used to create a new message.
  24. /// </summary>
  25. public string MessageTemplate { get; set; }
  26. /// <summary>
  27. /// The name that will appear next to the address from which the e-mail is sent.
  28. /// </summary>
  29. /// <remarks>
  30. /// This property contains your name (for example, "John Smith").
  31. /// </remarks>
  32. public string Name { get; set; }
  33. /// <summary>
  34. /// SMTP host name or IP address.
  35. /// </summary>
  36. public string Host { get; set; }
  37. /// <summary>
  38. /// The address from which the e-mail will be sent
  39. /// </summary>
  40. public string Address { get; set; }
  41. /// <summary>
  42. /// SMTP server password.
  43. /// </summary>
  44. /// <remarks>
  45. /// Specify the <see cref="Username"/> and <see cref="Password"/> properties if your host requires
  46. /// authentication.
  47. /// </remarks>
  48. public string Password { get; set; }
  49. /// <summary>
  50. /// SMTP port.
  51. /// </summary>
  52. /// <remarks>
  53. /// The default value for this property is <b>25</b>.
  54. /// </remarks>
  55. public int Port { get; set; } = 25;
  56. }
  57. public sealed class EmailExportParams
  58. {
  59. public string ExportFormat { get; set; }
  60. public string MessageBody { get; set; }
  61. public string NameAttachmentFile { get; set; }
  62. public string Subject { get; set; }
  63. public string Address { get; set; }
  64. }
  65. }