Email is now Built-in! (#2635)
This commit is contained in:
parent
2a539da24c
commit
a85644fb6b
55 changed files with 5129 additions and 1047 deletions
10
Kavita.Email/DTOs/ConfirmationEmailDto.cs
Normal file
10
Kavita.Email/DTOs/ConfirmationEmailDto.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
namespace Skeleton.DTOs;
|
||||
|
||||
public record ConfirmationEmailDto
|
||||
{
|
||||
public string InvitingUser { get; init; }
|
||||
public string EmailAddress { get; init; }
|
||||
public string ServerConfirmationLink { get; init; }
|
||||
public string InstallId { get; init; }
|
||||
|
||||
}
|
||||
9
Kavita.Email/DTOs/EmailMigrationDto.cs
Normal file
9
Kavita.Email/DTOs/EmailMigrationDto.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Skeleton.DTOs;
|
||||
|
||||
public class EmailMigrationDto
|
||||
{
|
||||
public string EmailAddress { get; init; }
|
||||
public string ServerConfirmationLink { get; init; }
|
||||
public string Username { get; init; }
|
||||
public string InstallId { get; init; }
|
||||
}
|
||||
15
Kavita.Email/DTOs/EmailOptionsDto.cs
Normal file
15
Kavita.Email/DTOs/EmailOptionsDto.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Skeleton.DTOs;
|
||||
|
||||
public class EmailOptionsDto
|
||||
{
|
||||
public IList<string> ToEmails { get; set; }
|
||||
public string Subject { get; set; }
|
||||
public string Body { get; set; }
|
||||
public IList<KeyValuePair<string, string>> PlaceHolders { get; set; }
|
||||
/// <summary>
|
||||
/// Filenames to attach
|
||||
/// </summary>
|
||||
public IList<string> Attachments { get; set; }
|
||||
}
|
||||
8
Kavita.Email/DTOs/PasswordResetDto.cs
Normal file
8
Kavita.Email/DTOs/PasswordResetDto.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
namespace Skeleton.DTOs;
|
||||
|
||||
public class PasswordResetDto
|
||||
{
|
||||
public string EmailAddress { get; init; }
|
||||
public string ServerConfirmationLink { get; init; }
|
||||
public string InstallId { get; init; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue