diff --git a/src/format.ts b/src/format.ts deleted file mode 100644 index 339b5de..0000000 --- a/src/format.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Mail, Options } from '../types.ts' -import { Contact } from './contact.ts' - -export function format( - from: Contact, - to: Contact[], - subject: string, - body: string, - options: Partial, -): Mail { - const defaultOptions: Options = { - from, - cc: [], - cci: [], - attachments: [], - } - - return { - to, - subject, - body, - options: { ...defaultOptions, ...options }, - } -}