FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Dobbs M-Dev
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
May 01, 2004

Measuring API Usability

(Page 3 of 4)
May04: Measuring API Usability


IPAddress hostIPAddress = IPAddress.Parse("130.23.43.234");
IPAddress theAddress = new IPAddress(hostIPAddress);
CEmailServer theServer = new CEmailServer (theAddress);

if (theServer.Connect ())
{
	CMailbox theMailbox = theServer.GetMailbox ("stevencl");
	theMailbox.Open("stevencl", true);
	CEmailMessage theMessage = theMailbox.NewMessage();
	theMessage.Build("message", " subject", "to@you.com");
	theMailbox.Send (theMsg, true);
	theMailbox.Close();
}
else
	Console.WriteLine ("Could not connect to the mail server");

Example 2: Using an API to create/send a new e-mail message.

Previous Page | 1 | 2 | 3 | 4 Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK