You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
transport.verify may return void, or false however it's handled as a promise. This issue arises when using the StreamTransport which has a verify function that always returns false. To Reproduce
Steps to reproduce the behavior:
use this valid nodemailer config in the module config:
Additional context
The problem lies in a wrong nodemailer typing. Which describes that verify must return either void or Promise. However the Mail class in nodemailer implementation checks if verify is not defined and implements one that logs undefined and returns false.
This is the transport interface from @types/nodemailer
Describe the bug
transport.verify may return void, or false however it's handled as a promise. This issue arises when using the StreamTransport which has a verify function that always returns false.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should run perfectly
Additional context
The problem lies in a wrong nodemailer typing. Which describes that verify must return either void or Promise. However the Mail class in nodemailer implementation checks if verify is not defined and implements one that logs undefined and returns false.
This is the transport interface from @types/nodemailer
The text was updated successfully, but these errors were encountered: