update emailer
parent
2797c504b4
commit
75415de5c7
|
|
@ -3,12 +3,12 @@ var router = express.Router();
|
|||
const nodemailer = require('nodemailer');
|
||||
|
||||
let transporter = nodemailer.createTransport({
|
||||
host: 'smtp.webfaction.com',
|
||||
port: 465,
|
||||
host: 'smtp.ionos.com',
|
||||
port: 587,
|
||||
secure: true,
|
||||
auth:{
|
||||
user: 'ofbcontact',
|
||||
pass: '2014OfbPwd'
|
||||
user: 'mail@ofbbutte.com',
|
||||
pass: '(app&email*sender)Q1'
|
||||
}
|
||||
|
||||
});
|
||||
|
|
@ -32,8 +32,8 @@ router.post("/", function(req,res){
|
|||
}
|
||||
|
||||
let mailOptions = {
|
||||
from: 'donotreply@oldfashionbaptistbutte.com',
|
||||
to: 'contact@oldfashionbaptistbutte.com',
|
||||
from: 'donotreply@ofbbutte.com',
|
||||
to: 'mail@ofbbutte.com',
|
||||
subject: 'OFB - ' + req.body.message.substring(0,Math.min(50,req.body.message.length-1)),
|
||||
html: '<b>Name:</b> ' + req.body.name + '<br><b>Email:</b> ' + req.body.email + '<br><b>Phone:</b> ' + req.body.phone + '<br><br>' + req.body.message
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue