aspNetEmail

EmailLicense Class

This class is used by COM/ASP clients to load the license file.

For a list of all members of this type, see EmailLicense Members.

System.Object
   EmailLicense

public class EmailLicense

Remarks

Because the EmailMessage object checkes for the existance of a license in it's ctor, a proxy object is needed. The EmailLicense class allows you to load the license file from instance methods, and then return a valid EmailMessage object.

Example

[VBScript]
            <%Option Explicit%>
            
            <%
            Dim msg 
            Dim lic 
            Set lic = Server.CreateObject( "aspNetEmail.EmailLicense" )
            lic.LoadLicenseFile  "c:\aspNetemail.xml.lic"  'loads the license in memory
            
            Set msg = Server.CreateObject( "aspNetEmail.EmailMessage" )
            msg.Server = "mail.mycompany.com"
            msg.To = "me@mycompany.com"
            msg.FromAddress = "you@yourcompany.com"
            msg.Subject = "this is a test from an ASP page"
            msg.Body = "this is the body of my message."
            
            msg.SaveToFile "c:\temp\asptest.eml", true 
            
            %>
            done.
            
            

Requirements

Namespace: aspNetEmail

Assembly: aspNetEmail (in aspNetEmail.dll)

See Also

EmailLicense Members | aspNetEmail Namespace