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.ConfigurationBegClass Program 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