SRL Archive - Other Language Help and Tutorials

Best language for a certain task?


JPHamlett

2014-12-20 07:28:19

So I recently started a new job here we have to respond to customers through email with something similar to this


Hey JPHamlett,
Thanks you for contacting XXY XXXYXY. I was glad I was able to assist you with your password reset. If you have any questions feel free to contact us

JPHamlett
999-9999|help@website.com
website

The only thing is that sometimes the name changes and some other things vary also, such as the issue we solved.

What language would be best for an online form that would take some input and output a similar paragraph and I could just copy paste it and move on?


Thanks
JPHamlett

akarigar

2014-12-20 08:11:16

From: JPHamlett
So I recently started a new job here we have to respond to customers through email with something similar to this


Hey JPHamlett,
Thanks you for contacting XXY XXXYXY. I was glad I was able to assist you with your password reset. If you have any questions feel free to contact us

JPHamlett
999-9999|help@website.com
website

The only thing is that sometimes the name changes and some other things vary also, such as the issue we solved.

What language would be best for an online form that would take some input and output a similar paragraph and I could just copy paste it and move on?


Thanks
JPHamlett


If that is all you need, you can do it quickly with HTML & JavaScript. If you've never touched JavaScript, then take a look at jQuery. Most people find it easy to use and very helpful.

If your application starts becoming bigger, you might want to create a back-end in PHP.

Good luck and congrats on your new job!

Brandon

2014-12-20 11:08:23

PHP would be my choice for such a task. Why? Because sending emails with libCurl is easy and done quite a lot. If you need to communicate with a database, that's done as well..

You can't really send an email using just javascript or jquery only.. without writing out every single header manually.

You will have to use JQuery for the front-end (form and looks for the page) and PHP for the back-end (actual emailing/server-side stuff) or JSP or ASP (your choice).

Dgby714

2014-12-20 19:41:39

From: Brandon
PHP would be my choice for such a task. Why? Because sending emails with libCurl is easy and done quite a lot. If you need to communicate with a database, that's done as well..

You can't really send an email using just javascript or jquery only.. without writing out every single header manually.

You will have to use JQuery for the front-end (form and looks for the page) and PHP for the back-end (actual emailing/server-side stuff) or JSP or ASP (your choice).


He didn't want it to send an email, he want's it to output a paragraph. Javascript would be the best bet.

J_R

2014-12-21 22:19:58

I wouldn't suggest using PHP unless it's something your company already uses elsewhere as PHP does some pretty weird stuff sometimes that doesn't make any sense http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

I'd suggest making something super quick+easy using JavaScript + HTML unless you actually need to send the email, in which case I think Python probably can do it pretty easy.

Daniel

2014-12-22 05:59:40

Something you may not have considered. Try using the in-built Microsoft Office e-mail tools. That might be a bit easier and straightforward.

Zhendos

2014-12-23 07:34:30

I would suggest PHP, but it might be a little bit hard for beginners.

JPHamlett

2015-01-10 20:25:55

Very basic model of what I wanted to do.


<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>OIT Help Desk</title>
</head>

<body>
<p id = "page"> </p>
<select id="selection" size = "9">
<option>Phone-Escalation</option>
<option>Phone-Password Reset</option>
<option>Phone-General</option>
<option>Phone-Google Desktop</option>
<option>Email-Escalation</option>
<option>Email-General</option>
<option>Email-Password</option>
<option>Information Services</option>
</select>
<button onclick="generate()">Generate()</button>
<script>
function copyToClipboard(s) {
if (window.clipboardData && clipboardData.setData) {
clipboardData.setData('text', s);
}
}

function generate(){
copyToClipboard("Test")
var index = document.getElementById("selection").selectedIndex;
var name = prompt("Name")
var string = ""
var special = false
switch(index){
case 0: string = "I have escalated your ticket up to our " + prompt("Escalated group") + " team. Your incident number is " + prompt("Incident number");
break;
case 1: string = "I am glad we were able to reset your password successfully";
break;
case 2: string = "I am glad I could help you " + prompt("What do you do?");
break;
case 3: string = "I am glad I could help you setup your Google Desktop/ Mobile Client Password.";
break;
case 4: string = "I have escalated your ticket up to our " + prompt("Escalated group") + " team. Your incident number is " + prompt("Incident number");
break;
case 5: string = "I am glad I could help you " + prompt("What do you do?");
break;
case 7: string = "Transfered caller to " + prompt("Dept/Person") + " [" + prompt("Transfer number") + "]";
special = true;
break;
case 6: string = name + ",<br><br>Thanks for contacting 1-Help. Unfortunately I cannot reset passwords over email due to security reasons. In order to get your password reset you will have to give us a call at 612-301-4357 (any time 24/7) and reference incident number " + prompt("Inc Number") + "<br><br>Thanks and have a great day! <br><br> John H";
special = true;
break;

}
if (special){
document.getElementById("page").innerHTML = string
} else{
document.getElementById("page").innerHTML = name + ",<br><br>Thanks for calling 1-Help." + string + ". If you have any further questions feel free to call us at 612-301-4357<br><br>Thanks and have a great day! <br><br> John H"
}
}
</script>


</body>
</html>