mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	fixed email meta changes
This commit is contained in:
		| @@ -3,7 +3,7 @@ var utils = require('./../public/src/utils.js'), | |||||||
| 	crypto = require('crypto'), | 	crypto = require('crypto'), | ||||||
| 	emailjs = require('emailjs'), | 	emailjs = require('emailjs'), | ||||||
| 	meta = require('./meta.js'), | 	meta = require('./meta.js'), | ||||||
| 	emailjsServer = emailjs.server.connect(meta.config.mailer || '127.0.0.1'), | 	emailjsServer = emailjs.server.connect(meta.config['email:smtp:host'] || '127.0.0.1'), | ||||||
| 	bcrypt = require('bcrypt'), | 	bcrypt = require('bcrypt'), | ||||||
| 	Groups = require('./groups'), | 	Groups = require('./groups'), | ||||||
| 	notifications = require('./notifications.js'), | 	notifications = require('./notifications.js'), | ||||||
| @@ -484,7 +484,7 @@ var utils = require('./../public/src/utils.js'), | |||||||
| 			// Send intro email w/ confirm code | 			// Send intro email w/ confirm code | ||||||
| 			var message = emailjs.message.create({ | 			var message = emailjs.message.create({ | ||||||
| 				text: confirm_email_plaintext, | 				text: confirm_email_plaintext, | ||||||
| 				from: meta.config.mailer.from, | 				from: meta.config['email:from'] || 'localhost@example.org', | ||||||
| 				to: email, | 				to: email, | ||||||
| 				subject: '[NodeBB] Registration Email Verification', | 				subject: '[NodeBB] Registration Email Verification', | ||||||
| 				attachment: [{ | 				attachment: [{ | ||||||
| @@ -815,7 +815,7 @@ var utils = require('./../public/src/utils.js'), | |||||||
|  |  | ||||||
| 					var message = emailjs.message.create({ | 					var message = emailjs.message.create({ | ||||||
| 						text: reset_email_plaintext, | 						text: reset_email_plaintext, | ||||||
| 						from: meta.config.mailer ? meta.config.mailer.from : 'localhost@example.org', | 						from: meta.config['email:from'] ? meta.config['email:from'] : 'localhost@example.org', | ||||||
| 						to: email, | 						to: email, | ||||||
| 						subject: 'Password Reset Requested', | 						subject: 'Password Reset Requested', | ||||||
| 						attachment: [{ | 						attachment: [{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user