"No recipients defined at SMTPConnection._formatError"


#1

Having trouble tracking this one down for some reason. Anyone else every seen this?

# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.

meteor-base@1.4.0             # Packages every Meteor app needs to have
mobile-experience@1.0.5       # Packages for a great mobile UX
mongo@1.5.1                # The database Meteor supports right now
reactive-var@1.0.11            # Reactive variable for tracker
tracker@1.2.0                 # Meteor's client-side reactive programming library
session@1.1.7
standard-minifier-js@2.4.0-beta171.18    # JS minifier run for production mode
es5-shim@4.8.0
ecmascript@0.12.0-beta171.18
shell-server@0.3.1
accounts-password@1.5.1
static-html
juliancwirko:postcss
percolate:synced-cron
apollo
nicolaslopezj:apollo-accounts
meteorhacks:aggregate
edgee:slingshot
aldeed:collection2
alanning:roles
wylio:mandrill
percolate:migrations
meteorhacks:picker
less@2.8.0-beta171.18
force-ssl@1.1.0
email@1.2.3
dynamic-import@0.5.0-beta171.18

underscore@1.0.10


#2

Without more of your code, the error stack, or what your are trying to accomplish - this is just a shot in the dark for a solution.

It appears you are not formatting an email options parameter properly, so nodemailer is complaining that it doesn’t have any properly formatted addresses to send to. What does your Email.send() options object look like? Ensure that:

// Server code
import { Email } from 'meteor/email';

const sendEmail = function() {
  const options = {
    to: 'to@example.com', // String or array of strings ['You <you@example.com>', 'another@example.com']
    from: 'from@example.com', // String
    subject: 'Regarding this email',
    text: 'Hello World',
  }
  Email.send(options);
}

sendEmail();

See https://docs.meteor.com/api/email.html for more options