Hi Eric,

Nodemailer is a server-side module only, so you can't use that in your 
frontend.
use import as a function, something like this:

import('mailgun-js').then(mg => {
const mailgun = mg({apiKey: api_key, domain: domain})
/** do your stuff in here */
}

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/7cb99f8e-6b8e-4489-97a0-e8a504405981%40googlegroups.com.

Reply via email to