We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In send-mail-options.interface.ts, below code can be found
send-mail-options.interface.ts
export interface ISendMailOptions extends SendMailOptions { ... text?: string | Buffer; ... }
Below are obtain from original nodemailer doc, original source from https://nodemailer.com/message/
text - The plaintext version of the message as an Unicode string, Buffer, Stream or an attachment-like object ({path: ‘/var/data/…’})
Text should be able to take in attachment-like object, instead of just string or Buffer.
I suggest the type to be updated to as below
export interface AttachmentLikeObject { path: string; } export interface ISendMailOptions extends SendMailOptions { ... text?: string | Buffer | AttachmentLikeObject; ... }
The text was updated successfully, but these errors were encountered:
fix(): add interface 'attachment like object' #104
30de1f6
No branches or pull requests
In
send-mail-options.interface.ts
, below code can be foundBelow are obtain from original nodemailer doc, original source from https://nodemailer.com/message/
Text should be able to take in attachment-like object, instead of just string or Buffer.
I suggest the type to be updated to as below
The text was updated successfully, but these errors were encountered: