royjacob
Oct 2nd, 2000, 08:46 PM
Does anyone know how to implement the SendMail() Object of Server-Side JavaSCript Programming. I know about the 'To', 'From' etc. Properties, but when i uploaded it into my 50megs server. It just displayed the code and nothing happened. Since, it's server-side programming do i need to save it as an asp file because i saved mine as an html file. this was the code i put in:
<html>
<body>
<server>
SMName = new SendMail();
SMName.To = "roy_george_jacob@hotmail.com";
SMName.From = "royjacob@usa.net";
SMName.Subject = "Here's the information you wanted";
SMName.Body = "sharm, maldives, phuket, coral sea, taveuni, maui,
cocos island, marathon cay, san salvador";
SMName.send();
</server>
</body>
</html>
<html>
<body>
<server>
SMName = new SendMail();
SMName.To = "roy_george_jacob@hotmail.com";
SMName.From = "royjacob@usa.net";
SMName.Subject = "Here's the information you wanted";
SMName.Body = "sharm, maldives, phuket, coral sea, taveuni, maui,
cocos island, marathon cay, san salvador";
SMName.send();
</server>
</body>
</html>