I came across a website and was curious about its available jobs. To my surprise, a popup window asked me to look in the console and enter my email using a function. I did by typing in getStep3('myemail@yahoo.com'). A message appeared saying that in perfect world, they would have finish the JS in which an email will be send. However, they ran out of time and as part of my job application, they want me to email them my solution of how to make getStep3() functional so that it can send them email notification.
All I know is that in html, you use "mailto: email@email.com" in <a>
link. So after doing research, is it like this?
function getStep3(emailAddress) {
var link = 'mailto:jobs@company.com?subject=Job application?body= ' + emailAddress + 'wants to apply for a job at your company";
window.location.href = link;
}
UPDATE People said that it's a duplicate of another question. I'm not sure but I don't think it's asking to send an email that you make, but a email notification once someone type in their email and run the function in the Console.