Subj : JS Formatting To : DesotoFireflite From : Digital Man Date : Mon Jul 11 2022 11:15 am Re: JS Formatting By: DesotoFireflite to Digital Man on Sun Jul 10 2022 07:50 pm > Re: JS Formatting > By: Digital Man to DesotoFireflite on Sun Jul 10 2022 02:40 pm > > DM> Re: JS Formatting > DM> By: DesotoFireflite to All on Sun Jul 10 2022 07:24 am > > >> I added a message option to send me an email everytime a new user was > >> verified by the emailvar.js. It's working correctly, and I'm very > >> satisfied with my efforts to make it work. The message it send to my > >> email is as follows: > > >> -+- Snipit ---- > >> msgtxt = "New Member, Alias: " + user.alias + ", #: " + > >> String(user.number) + ", Joined " + system.name + " Today " + (new > >> Date()); -+- Snipit ---- > > >> expands as follows in the message: > > >> New Member, Alias: Tuff, #: 191, Joined Valhalla Home Services Today > >> Sun Jul 10 7:15:32 > > >> I would rather it to be somewhat like this: > > >> New Member Joined Valhalla Home Services Today Sun Jul 10 7:15:32. > > >> Alias: Tuff > >> Number: 191 > > >> Is there a way to do this. For the like of me, I can't find a way to > >> do this formatting. I'm successful in doing it in one line, but I'm > >> trying to learn more. Thanks in advance. > > DM> msgtxt = "New Member Joined " + system.name + " Today " + new Date() + > DM> ".\r\n"; msgtxt += "\r\n Alias: " + user.alias; > DM> msgtxt += "\r\n Number: " + user.number; > DM> msgtxt += "\r\n"; > > WOW, that was simple enough. I had no idea you could do it this way, but > after looking at it, it makes perfect sense. > > I wish there was a tips and tricks info site on js, that I could explore. Here are some for this particular topic: https://www.w3schools.com/js/js_strings.asp https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String > Thanks again for the assist. No problem. -- digital man (rob) Sling Blade quote #8: Karl Childers: I don't reckon I got no reason to kill nobody. Norco, CA WX: 80.4øF, 49.0% humidity, 2 mph E wind, 0.00 inches rain/24hrs .