Adding e-mail to simple-todos

I would like to add a second form to simple-todos that will send an e-mail with the to-do list. I’ve added to the .css and html, so I see them on my page. Just having trouble with calling the .js action.

Here is what I added.


in the body
{{> sendEmail}}

a new template:


E-mail Address:

Send E-mail

“submit .sendEmail”: function (event) {
var text =‘sendEmail’,
‘Hello from Meteor!’,
‘This is a test of Email.send.’);

 // Clear form = "";

  // Prevent default form submit
  return false;



.send-email {
margin-top: 10px;
margin-bottom: -10px;
position: relative;
margin-left: 1em;

.email-label input {
border: none;

.email-label input:focus{
outline: 0;

.email {
font-weight: bold;
background: none;
font-size: 1em;
position: relative;

Did you define a server side method called “sendEmail”?

This is what I have.

#// A method that the client can call because only the server can send e-mails
sendEmail: function (to, from, subject, text) {
check([to, from, subject, text], [String]);

// Let other method calls from the same client start running,
// without waiting for the email sending to complete.

  to: to,
  from: from,
  subject: subject,
  text: text