Results 1 to 2 of 2

Thread: SendMail() OBJECT

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Posts
    117
    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 = "[email protected]";
    SMName.From = "[email protected]";
    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>

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    What sort of server are you attempting to run it on?

    You can use "Client-side" javascript in Active Server pages but your code is Server-Side JavaScript which is used on Netscape Enterprise Servers

    This cannot run on a Microsoft server which I suspect you are trying to do as you asked about naming the file as .asp
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width