Email package: undefined error returned


I’m not able to send emails using the native Email package.
I’ve installed and imported the module in my method’s file but when I try to send an email I receive this unexplained error from console: “Cannot read properties of undefined (reading ‘send’)”.

This happens even without setting my MAIL_URL environment variable. Nothing is printed in the console.

Can you help me understand why?

Thanks :wink:

I solved using “isSimulation” inside my validated method.

Hi @lucalanzano81 can you give me the stacktrace you are getting.

Also please make sure that your are correctly importing from email package:

import { Email } from 'meteor/email';