import React, { PropTypes, Component } from 'react'; import Actions from "../actions.js"; import { Button } from 'react-bootstrap'; import { Messages } from "meteor/nova:core"; const Loading = Telescope.components.Loading; class Email extends Component { constructor() { super(); this.sendTest = this.sendTest.bind(this); this.state = { loading: false } } sendTest() { this.setState({loading: true}); Actions.call("testEmail", this.props.name, (error, result) => { this.setState({loading: false}); if (error) { Messages.flash(error.message, "error"); } else { Messages.flash(`Test email sent (“${result}”).`, "success"); } }); } render() { const {email, name} = this.props; return (
Name | Template | Subject | HTML Preview | Send Test |