eBA Kodunda Mail Gönderimi

eBADBProvider db = new eBADBProvider();
db.Connection.Open();
try
{
eBALibrary.eBAMail ebamail = new eBAMail(db);
ebamail.From = “eba@eba.net” //set edilmezse configden alır
ebamail.FromName = “eba@eba.net” //set edilmezse configden alır
ebamail.TO.Add(“eba@eba.net”);
ebamail.TO.Add(“eba@eba.net”);
ebamail.CC.Add(“eba@eba.net”);
ebamail.BCC.Add(“eba@eba.net”);
ebamail.Subject = “subject…”;
ebamail.Body = “Body…”;
ebamail.IsHtml = true; //default true
ebamail.Attachments.Add(“c:\\Attach.txt”);
ebamail.Send();
}
finally
{
db.Connection.Close();
}