Scenario:
When we use email.send function in suitescript, sometimes this type error: email.send is not a function will be thrown.
Solution:
Check and confirm N/email module is added.
Check the parameters passed to send email function, or the variable used to assign the email id.
This error mainly occurs, when we use parameters as ’email’ in the code.
Example:
let email=’test@abc.com’
sendEmail(email);
Instead of varaible ’email’ try with some other variable name and do the same.