|
-
May 28th, 2001, 03:42 AM
#1
Thread Starter
Hyperactive Member
ASP Subs/functions - please
Hello,
How do you declare a function/sub in ASP (NOT VBScript....).
I want to do something like
onclick="email()"
< script language="VBScript">
sub email
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
mailer.fromname = "TEST"
mailer.fromaddress = "myemail.com"
Mailer.RemoteHost = "myremotehost.net"
mailer.addrecipient "Test","YourAddress.com"
mailer.subject = "Testing"
mailer.bodytext = "Hello"
end sub
I get errors like "Server not an object" and "mailer not an object".
Thanks,
T
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|