You are on page 1of 1

clsMain.

cs
using System;
using System.Windows.Forms;

namespace TestProg
{
public class clsMain
{
public static void Main()
{
string s;
CS_SMTP_NET.clsSMTP_NET objSMTP = new
CS_SMTP_NET.clsSMTP_NET();
objSMTP.SenderName = "SenderName";
objSMTP.Sender = "sender@domain.com";
objSMTP.RecipientName = "RecipientName";
objSMTP.Recipient = "recipient@domain.com";
objSMTP.User = "user@domain.com";
objSMTP.Server = "smtp.domain.com";
objSMTP.Subject = "Test-Subject";
objSMTP.Body = "Test-Body";

//objSMTP.Add_cc("somebody@domain2.com", "Somebody");
//objSMTP.Add_Bcc("anyone@domain3.com","Anyone");
//objSMTP.AddAttachment("C:\\boot.ini");
s = objSMTP.Send();
MessageBox.Show(s, "TestCS_SMTP", MessageBoxButtons.OK,
MessageBoxIcon.Information);

objSMTP.Dispose();
objSMTP = null;
}
}
}

Page 1

You might also like