mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00

* [SG-994] Add import Open Sans font to full template * [SG-994] Update organization user invite email template to new UI * [SG-994] update alt text for mobile app download buttons * [SG-994] Update copy. Add hyperlinks to stores. * [SG-944] Improve layout responsiveness * [PM-1095][PM-1104] Add new template for title and contact us. Add new template for user organization invite * [PM-1095][PM-1104] Remove wrong text from free invite * [PM-1104][PM-1095] Add bold class. Add margin. * [PM-1104][PM-1095] Change font type to previously used * [PM-1104][PM-1095] Remove Open Sans font * [PM-1104][PM-1095] Improve browsers rendering compatibility * [PM-1104][PM-1095] Fixed margins * [PM-1095][PM-1104] Remove unnecessary string sanitise.
58 lines
4.5 KiB
C#
58 lines
4.5 KiB
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Entities.Provider;
|
|
using Bit.Core.Models.Business;
|
|
using Bit.Core.Models.Mail;
|
|
|
|
namespace Bit.Core.Services;
|
|
|
|
public interface IMailService
|
|
{
|
|
Task SendWelcomeEmailAsync(User user);
|
|
Task SendVerifyEmailEmailAsync(string email, Guid userId, string token);
|
|
Task SendVerifyDeleteEmailAsync(string email, Guid userId, string token);
|
|
Task SendChangeEmailAlreadyExistsEmailAsync(string fromEmail, string toEmail);
|
|
Task SendChangeEmailEmailAsync(string newEmailAddress, string token);
|
|
Task SendTwoFactorEmailAsync(string email, string token);
|
|
Task SendNoMasterPasswordHintEmailAsync(string email);
|
|
Task SendMasterPasswordHintEmailAsync(string email, string hint);
|
|
Task SendOrganizationInviteEmailAsync(string organizationName, OrganizationUser orgUser, ExpiringToken token, bool isFreeOrg);
|
|
Task BulkSendOrganizationInviteEmailAsync(string organizationName, IEnumerable<(OrganizationUser orgUser, ExpiringToken token)> invites, bool isFreeOrg);
|
|
Task SendOrganizationMaxSeatLimitReachedEmailAsync(Organization organization, int maxSeatCount, IEnumerable<string> ownerEmails);
|
|
Task SendOrganizationAutoscaledEmailAsync(Organization organization, int initialSeatCount, IEnumerable<string> ownerEmails);
|
|
Task SendOrganizationAcceptedEmailAsync(Organization organization, string userIdentifier, IEnumerable<string> adminEmails);
|
|
Task SendOrganizationConfirmedEmailAsync(string organizationName, string email);
|
|
Task SendOrganizationUserRemovedForPolicyTwoStepEmailAsync(string organizationName, string email);
|
|
Task SendPasswordlessSignInAsync(string returnUrl, string token, string email);
|
|
Task SendInvoiceUpcomingAsync(string email, decimal amount, DateTime dueDate, List<string> items,
|
|
bool mentionInvoices);
|
|
Task SendPaymentFailedAsync(string email, decimal amount, bool mentionInvoices);
|
|
Task SendAddedCreditAsync(string email, decimal amount);
|
|
Task SendLicenseExpiredAsync(IEnumerable<string> emails, string organizationName = null);
|
|
Task SendNewDeviceLoggedInEmail(string email, string deviceType, DateTime timestamp, string ip);
|
|
Task SendRecoverTwoFactorEmail(string email, DateTime timestamp, string ip);
|
|
Task SendOrganizationUserRemovedForPolicySingleOrgEmailAsync(string organizationName, string email);
|
|
Task SendEmergencyAccessInviteEmailAsync(EmergencyAccess emergencyAccess, string name, string token);
|
|
Task SendEmergencyAccessAcceptedEmailAsync(string granteeEmail, string email);
|
|
Task SendEmergencyAccessConfirmedEmailAsync(string grantorName, string email);
|
|
Task SendEmergencyAccessRecoveryInitiated(EmergencyAccess emergencyAccess, string initiatingName, string email);
|
|
Task SendEmergencyAccessRecoveryApproved(EmergencyAccess emergencyAccess, string approvingName, string email);
|
|
Task SendEmergencyAccessRecoveryRejected(EmergencyAccess emergencyAccess, string rejectingName, string email);
|
|
Task SendEmergencyAccessRecoveryReminder(EmergencyAccess emergencyAccess, string initiatingName, string email);
|
|
Task SendEmergencyAccessRecoveryTimedOut(EmergencyAccess ea, string initiatingName, string email);
|
|
Task SendEnqueuedMailMessageAsync(IMailQueueMessage queueMessage);
|
|
Task SendAdminResetPasswordEmailAsync(string email, string userName, string orgName);
|
|
Task SendProviderSetupInviteEmailAsync(Provider provider, string token, string email);
|
|
Task SendProviderInviteEmailAsync(string providerName, ProviderUser providerUser, string token, string email);
|
|
Task SendProviderConfirmedEmailAsync(string providerName, string email);
|
|
Task SendProviderUserRemoved(string providerName, string email);
|
|
Task SendUpdatedTempPasswordEmailAsync(string email, string userName);
|
|
Task SendFamiliesForEnterpriseOfferEmailAsync(string sponsorOrgName, string email, bool existingAccount, string token);
|
|
Task BulkSendFamiliesForEnterpriseOfferEmailAsync(string SponsorOrgName, IEnumerable<(string Email, bool ExistingAccount, string Token)> invites);
|
|
Task SendFamiliesForEnterpriseRedeemedEmailsAsync(string familyUserEmail, string sponsorEmail);
|
|
Task SendFamiliesForEnterpriseSponsorshipRevertingEmailAsync(string email, DateTime expirationDate);
|
|
Task SendOTPEmailAsync(string email, string token);
|
|
Task SendFailedLoginAttemptsEmailAsync(string email, DateTime utcNow, string ip);
|
|
Task SendFailedTwoFactorAttemptsEmailAsync(string email, DateTime utcNow, string ip);
|
|
Task SendUnverifiedOrganizationDomainEmailAsync(IEnumerable<string> adminEmails, string organizationId, string domainName);
|
|
}
|