CDONTS.NewMail类让我像这样发送电子邮件:
Set MailObj = Server.CreateObject("CDONTS.NewMail")
MailObj.To = someone@example.com
' set other properties of MailObj
MailObj.Send我可以在ASP中创建我自己的类,但是它不允许我定义一个名为"To“的属性。
有什么方法可以在我定义的类中创建一个具有"To“属性的类吗?
class MyMail
Public To ' this doesn't work!
Public From ' this works great!
end classhttps://stackoverflow.com/questions/36585334
复制相似问题