Skip to content

Commit

Permalink
Using mailgun instead of yandex
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarman committed Apr 27, 2015
1 parent 117cb2f commit f3e3f3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
14 changes: 0 additions & 14 deletions package.json~

This file was deleted.

22 changes: 10 additions & 12 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ var uuid = require('uuid');
Here we are configuring our SMTP Server details.
STMP is mail server which is responsible for sending and recieving email.
*/
var smtpTransport = nodemailer.createTransport("SMTP",{
service: "Yandex",
auth: {
user: "OMPservice",
pass: "unique6password"
}
});
var rand,mailOptions,host,link;
/*------------------SMTP Over-----------------------------*/


var smtpTransport = nodemailer.createTransport("SMTP",{
service: "MailGun",
auth: {
user: "postmaster@sandboxaac1d285a070420f976563208a2452ed.mailgun.org",
pass: "bdc12c4d3f90dfcb407ec81142cd68a8"
}
});

var rand,mailOptions,host,link;

// used for setting the token, can be replaced with something else later
var secret = "secret";
Expand Down Expand Up @@ -114,7 +111,8 @@ app.post('/SignUp', function(req,res){
link="http://localhost:5000/#/Verify/"+ verificationCode;

mailOptions={
from: 'OMPservice <OMPservice@yandex.com>',
// user will see 'OMP@omp.com via mailgun.org'
from: 'OMPservice<OMP@omp.com>',
to : req.body.email,
subject : "Please confirm your Email account",
html : "Hello,<br> Please Click on the link to verify your email.<br><a href="+link+">Click here to verify</a>"
Expand Down

0 comments on commit f3e3f3e

Please sign in to comment.