@@ -16,10 +16,10 @@ module.exports = function(router) {
1616
1717 // Nodemailer options (use with g-mail or SMTP)
1818 var client = nodemailer . createTransport ( {
19- service : 'Mailgun ' ,
19+ service : 'Gmail ' ,
2020 auth : {
21- user : 'postmaster@www.herokutestapp3z24 .com' , // Your email address
22- pass : 'bc151674162caffafce1eb36c00f345a ' // Your password
21+ user : 'cruiserweights@zoho .com' , // Your email address
22+ pass : 'PAssword123!@# ' // Your password
2323 }
2424 } ) ;
2525 // var client = nodemailer.createTransport(sgTransport(options)); // Use if using sendgrid configuration
@@ -69,7 +69,7 @@ module.exports = function(router) {
6969 } else {
7070 // Create e-mail object to send to user
7171 var email = {
72- from : 'MEAN Stack Staff, staff@localhost .com' ,
72+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
7373 to : user . email ,
7474 subject : 'Your Activation Link' ,
7575 text : 'Hello ' + user . name + ', thank you for registering at localhost.com. Please click on the following link to complete your activation: http://www.herokutestapp3z24.com/activate/' + user . temporarytoken ,
@@ -96,7 +96,7 @@ module.exports = function(router) {
9696 if ( err ) {
9797 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
9898 var email = {
99- from : 'MEAN Stack Staff, staff@localhost .com' ,
99+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
100100 to : 'gugui3z24@gmail.com' ,
101101 subject : 'Error Logged' ,
102102 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -128,7 +128,7 @@ module.exports = function(router) {
128128 if ( err ) {
129129 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
130130 var email = {
131- from : 'MEAN Stack Staff, staff@localhost .com' ,
131+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
132132 to : 'gugui3z24@gmail.com' ,
133133 subject : 'Error Logged' ,
134134 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -161,7 +161,7 @@ module.exports = function(router) {
161161 if ( err ) {
162162 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
163163 var email = {
164- from : 'MEAN Stack Staff, staff@localhost .com' ,
164+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
165165 to : 'gugui3z24@gmail.com' ,
166166 subject : 'Error Logged' ,
167167 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -207,7 +207,7 @@ module.exports = function(router) {
207207 if ( err ) {
208208 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
209209 var email = {
210- from : 'MEAN Stack Staff, staff@localhost .com' ,
210+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
211211 to : 'gugui3z24@gmail.com' ,
212212 subject : 'Error Logged' ,
213213 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -241,7 +241,7 @@ module.exports = function(router) {
241241 } else {
242242 // If save succeeds, create e-mail object
243243 var email = {
244- from : 'MEAN Stack Staff, staff@localhost .com' ,
244+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
245245 to : user . email ,
246246 subject : 'Account Activated' ,
247247 text : 'Hello ' + user . name + ', Your account has been successfully activated!' ,
@@ -266,7 +266,7 @@ module.exports = function(router) {
266266 if ( err ) {
267267 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
268268 var email = {
269- from : 'MEAN Stack Staff, staff@localhost .com' ,
269+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
270270 to : 'gugui3z24@gmail.com' ,
271271 subject : 'Error Logged' ,
272272 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -311,7 +311,7 @@ module.exports = function(router) {
311311 if ( err ) {
312312 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
313313 var email = {
314- from : 'MEAN Stack Staff, staff@localhost .com' ,
314+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
315315 to : 'gugui3z24@gmail.com' ,
316316 subject : 'Error Logged' ,
317317 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -336,7 +336,7 @@ module.exports = function(router) {
336336 } else {
337337 // If user successfully saved to database, create e-mail object
338338 var email = {
339- from : 'MEAN Stack Staff, staff@localhost .com' ,
339+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
340340 to : user . email ,
341341 subject : 'Activation Link Request' ,
342342 text : 'Hello ' + user . name + ', You recently requested a new account activation link. Please click on the following link to complete your activation: https://immense-dusk-71112.herokuapp.com/activate/' + user . temporarytoken ,
@@ -364,7 +364,7 @@ module.exports = function(router) {
364364 } else {
365365 // If e-mail found in database, create e-mail object
366366 var email = {
367- from : 'Localhost Staff, staff@localhost .com' ,
367+ from : 'Localhost Staff, cruiserweights@zoho .com' ,
368368 to : user . email ,
369369 subject : 'Localhost Username Request' ,
370370 text : 'Hello ' + user . name + ', You recently requested your username. Please save it in your files: ' + user . username ,
@@ -391,7 +391,7 @@ module.exports = function(router) {
391391 if ( err ) {
392392 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
393393 var email = {
394- from : 'MEAN Stack Staff, staff@localhost .com' ,
394+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
395395 to : 'gugui3z24@gmail.com' ,
396396 subject : 'Error Logged' ,
397397 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -421,7 +421,7 @@ module.exports = function(router) {
421421 } else {
422422 // Create e-mail object to send to user
423423 var email = {
424- from : 'MEAN Stack Staff, staff@localhost .com' ,
424+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
425425 to : user . email ,
426426 subject : 'Reset Password Request' ,
427427 text : 'Hello ' + user . name + ', You recently request a password reset link. Please click on the link below to reset your password:<br><br><a href="http://www.herokutestapp3z24.com/reset/' + user . resettoken ,
@@ -450,7 +450,7 @@ module.exports = function(router) {
450450 if ( err ) {
451451 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
452452 var email = {
453- from : 'MEAN Stack Staff, staff@localhost .com' ,
453+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
454454 to : 'gugui3z24@gmail.com' ,
455455 subject : 'Error Logged' ,
456456 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -490,7 +490,7 @@ module.exports = function(router) {
490490 if ( err ) {
491491 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
492492 var email = {
493- from : 'MEAN Stack Staff, staff@localhost .com' ,
493+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
494494 to : 'gugui3z24@gmail.com' ,
495495 subject : 'Error Logged' ,
496496 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -519,7 +519,7 @@ module.exports = function(router) {
519519 } else {
520520 // Create e-mail object to send to user
521521 var email = {
522- from : 'MEAN Stack Staff, staff@localhost .com' ,
522+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
523523 to : user . email ,
524524 subject : 'Password Recently Reset' ,
525525 text : 'Hello ' + user . name + ', This e-mail is to notify you that your password was recently reset at localhost.com' ,
@@ -568,7 +568,7 @@ module.exports = function(router) {
568568 if ( err ) {
569569 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
570570 var email = {
571- from : 'MEAN Stack Staff, staff@localhost .com' ,
571+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
572572 to : 'gugui3z24@gmail.com' ,
573573 subject : 'Error Logged' ,
574574 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -602,7 +602,7 @@ module.exports = function(router) {
602602 if ( err ) {
603603 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
604604 var email = {
605- from : 'MEAN Stack Staff, staff@localhost .com' ,
605+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
606606 to : 'gugui3z24@gmail.com' ,
607607 subject : 'Error Logged' ,
608608 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -635,7 +635,7 @@ module.exports = function(router) {
635635 if ( err ) {
636636 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
637637 var email = {
638- from : 'MEAN Stack Staff, staff@localhost .com' ,
638+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
639639 to : 'gugui3z24@gmail.com' ,
640640 subject : 'Error Logged' ,
641641 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -656,7 +656,7 @@ module.exports = function(router) {
656656 if ( err ) {
657657 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
658658 var email = {
659- from : 'MEAN Stack Staff, staff@localhost .com' ,
659+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
660660 to : 'gugui3z24@gmail.com' ,
661661 subject : 'Error Logged' ,
662662 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -702,7 +702,7 @@ module.exports = function(router) {
702702 if ( err ) {
703703 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
704704 var email = {
705- from : 'MEAN Stack Staff, staff@localhost .com' ,
705+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
706706 to : 'gugui3z24@gmail.com' ,
707707 subject : 'Error Logged' ,
708708 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -732,7 +732,7 @@ module.exports = function(router) {
732732 if ( err ) {
733733 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
734734 var email = {
735- from : 'MEAN Stack Staff, staff@localhost .com' ,
735+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
736736 to : 'gugui3z24@gmail.com' ,
737737 subject : 'Error Logged' ,
738738 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -765,7 +765,7 @@ module.exports = function(router) {
765765 if ( err ) {
766766 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
767767 var email = {
768- from : 'MEAN Stack Staff, staff@localhost .com' ,
768+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
769769 to : 'gugui3z24@gmail.com' ,
770770 subject : 'Error Logged' ,
771771 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -793,7 +793,7 @@ module.exports = function(router) {
793793 if ( err ) {
794794 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
795795 var email = {
796- from : 'MEAN Stack Staff, staff@localhost .com' ,
796+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
797797 to : 'gugui3z24@gmail.com' ,
798798 subject : 'Error Logged' ,
799799 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -838,7 +838,7 @@ module.exports = function(router) {
838838 if ( err ) {
839839 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
840840 var email = {
841- from : 'MEAN Stack Staff, staff@localhost .com' ,
841+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
842842 to : 'gugui3z24@gmail.com' ,
843843 subject : 'Error Logged' ,
844844 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -868,7 +868,7 @@ module.exports = function(router) {
868868 if ( err ) {
869869 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
870870 var email = {
871- from : 'MEAN Stack Staff, staff@localhost .com' ,
871+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
872872 to : 'gugui3z24@gmail.com' ,
873873 subject : 'Error Logged' ,
874874 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -915,7 +915,7 @@ module.exports = function(router) {
915915 if ( err ) {
916916 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
917917 var email = {
918- from : 'MEAN Stack Staff, staff@localhost .com' ,
918+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
919919 to : 'gugui3z24@gmail.com' ,
920920 subject : 'Error Logged' ,
921921 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -962,7 +962,7 @@ module.exports = function(router) {
962962 if ( err ) {
963963 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
964964 var email = {
965- from : 'MEAN Stack Staff, staff@localhost .com' ,
965+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
966966 to : 'gugui3z24@gmail.com' ,
967967 subject : 'Error Logged' ,
968968 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
@@ -1009,7 +1009,7 @@ module.exports = function(router) {
10091009 if ( err ) {
10101010 // Create an e-mail object that contains the error. Set to automatically send it to myself for troubleshooting.
10111011 var email = {
1012- from : 'MEAN Stack Staff, staff@localhost .com' ,
1012+ from : 'MEAN Stack Staff, cruiserweights@zoho .com' ,
10131013 to : 'gugui3z24@gmail.com' ,
10141014 subject : 'Error Logged' ,
10151015 text : 'The following error has been reported in the MEAN Stack Application: ' + err ,
0 commit comments