Program.vr

#
#

Class1.vr

This example shows how to send emails with the System.Net.Mail namespace. You’ll probably want to put the Emailer class in your own namespace.

Using System
Using System.Net
Using System.Net.Mail 
Using System.Collections.Generic
Using System.IO 
Using System.Configuration
#

Program class

This test program is a console application.

BegClass Program
#

Main method

This method instances TestEmail and calls its SendEmail method.

    BegSr Main Shared(*Yes) Access(*Public) Attributes(System.STAThread())
        DclSrParm args Type(*String) Rank(1)

        TestEmail.SendEmail()

        Console.WriteLine('Press any key to continue...') 
        Console.ReadKey()
    EndSr
EndClass