The CDONTS.NewMail class let's me send email like this:
Set MailObj = Server.CreateObject("CDONTS.NewMail")
MailObj.To = someone@example.com
' set other properties of MailObj
MailObj.Send
I can create my own class in ASP, but it won't let me define a property named "To".
Is there some way I can create a class with a property named "To" in a class that I define?
class MyMail
Public To ' this doesn't work!
Public From ' this works great!
end class
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.