Sending an email

A

A.M

Hi,

I use the following code to send an email:

var objEmailAdapter;
objEmailAdapter = XDocument.DataAdapters("EmailSubmit");

objEmailAdapter.To = "[email protected]";
objEmailAdapter.Subject = "Status Report";
objEmailAdapter.Submit();


The problem is I have to create an email adapter (in above code called
"EmailSubmit") to make above code work.

Can I create the email adapter within the code, so developers won't have to
create the email adapter to be able to use above code?

Thank you,
Alan
 
Top