I'm currently facing an issue while trying to utilize the Email.send()
feature in the Meteor email package. I seem to have hit a roadblock with the following code snippet:
Email.send
({
from: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b535e5757547b5e565a525715555e4f">[email protected]</a>',
to: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bccfd3d1d9d3d2d9fccfd3d1d9cbd4d9ced992d5d2d
})
Upon running this code, Meteor throws the following error:
=> Started proxy.
=> Errors prevented startup:
While building the application:
<runJavaScript-31>:148:11: server/server.coffee:162: unexpected .
(compiling server/server.coffee) (at handler)
=> Your application has errors. Waiting for file change.
=> Started MongoDB.
The error seems to be related to line 162 where the send
function is called. I have already executed meteor add email
. Could someone kindly assist me in identifying the issue at hand? I would greatly appreciate a fresh perspective, thank you!