meteor add justinrvt:contact-form
or
Root of the project:
mkdir packages && cd $_
git clone https://github.com/JustinRvt/Meteor-French-Contact-Form.git
set the MAIL_URL environment variable.
For instance:
Meteor.startup ->
process.env.MAIL_URL = 'smtp://yourlogin:yourpassword@smtp.youremaildeliveryprovider.net:587'
return
Then, add your email >
Coffeescript:
Meteor.settings.myFrenchContactForm = emailTo: 'coucou@myfrenchmail.com'
or
Javascript:
Meteor.settings.myFrenchContactForm = {
emailTo: 'coucou@myfrenchmail.com'
};
Jade:
+myFrenchContactForm
or
HTML:
{{>myFrenchContactForm}}
You're done. 💕