Sending an email

A

A.M

Hi,

I use the following code to send an email:

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

objEmailAdapter.To = "(e-mail address removed)";
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top