Skip to content

Commit

Permalink
fix(): sendMail options errors #85
Browse files Browse the repository at this point in the history
  • Loading branch information
juandav committed Mar 19, 2020
1 parent 0838abd commit 02e5950
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/interfaces/send-mail-options.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
import { SendMailOptions } from 'nodemailer';

export type TextEncoding = 'quoted-printable' | 'base64';
export type Headers =
| { [key: string]: string | string[] | { prepared: boolean; value: string } }
| Array<{ key: string; value: string }>;

export interface Address {
name: string;
address: string;
}

export interface ISendMailOptions extends SendMailOptions {
to?: string | Address | Array<string | Address>;
cc?: string | Address | Array<string | Address>;
replyTo?: string | Address;
inReplyTo?: string | Address;
from?: string | Address;
subject?: string;
text?: string | Buffer;
html?: string | Buffer;
sender?: string | Address;
raw?: string | Buffer;
textEncoding?: TextEncoding;
references?: string | string[];
encoding?: string;
date?: Date | string;
headers?: Headers;
context?: {
[name: string]: any;
};
Expand Down

0 comments on commit 02e5950

Please sign in to comment.