feat(application): register AutoMapper mappings for new commands and add SendAndAppend to IImapEmailService
This commit is contained in:
@@ -37,5 +37,14 @@ public interface IImapEmailService
|
||||
/// <param name="folder"></param>
|
||||
/// <returns></returns>
|
||||
DateTime? GetLastImapSyncDate(int accountId, string folder = "INBOX");
|
||||
|
||||
/// <summary>
|
||||
/// Sends an email via SMTP using the account credentials and appends the sent message
|
||||
/// to the account's IMAP Sent Items folder.
|
||||
/// </summary>
|
||||
Task SendAndAppendAsync(
|
||||
EmailContext context,
|
||||
string sentFolder = "Sent",
|
||||
CancellationToken cancellationToken = default);
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user