feat(mail): add smtp email delivery
This commit is contained in:
parent
faddaa91d0
commit
3456b04ed4
25 changed files with 529 additions and 60 deletions
13
lib/mail/types.ts
Normal file
13
lib/mail/types.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import type { ContactInquiry, RepairInquiry, SmtpSettings } from "@/lib/admin/types";
|
||||
|
||||
export type PublicSmtpSettings = Omit<SmtpSettings, "password"> & {
|
||||
hasPassword: boolean;
|
||||
};
|
||||
|
||||
export type MailSendResult = {
|
||||
ok: boolean;
|
||||
error?: string;
|
||||
};
|
||||
|
||||
export type ContactMailInput = ContactInquiry;
|
||||
export type RepairMailInput = RepairInquiry;
|
||||
Loading…
Add table
Add a link
Reference in a new issue