This commit is contained in:
typpo 2012-04-06 18:49:50 -04:00
parent 52f5ce59ac
commit af9af7d26d

4
app.js
View File

@ -55,6 +55,8 @@ function dateStr() {
return mm + '/' + dd + '/' + yyyy; return mm + '/' + dd + '/' + yyyy;
} }
function validatePhone()
function sendText(phone, message, cb) { function sendText(phone, message, cb) {
var transport = nodemailer.createTransport("SES", { var transport = nodemailer.createTransport("SES", {
AWSAccessKeyID: config.aws.access, AWSAccessKeyID: config.aws.access,
@ -64,7 +66,7 @@ function sendText(phone, message, cb) {
var mailOptions = { var mailOptions = {
transport: transport, // transport method to use transport: transport, // transport method to use
from: "txt@textbelt.com", // sender address from: "txt@textbelt.com", // sender address
to: '9147727429@vtext.com', to: 'typppo@gmail.com',
subject: '', // Subject line subject: '', // Subject line
text: message, text: message,
} }