25.01.2015 Views

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

Using Caché Objects - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24<br />

Internet Classes<br />

The <strong>Caché</strong> class library includes classes that provide an easy-to-use interface for a number<br />

of useful Internet protocols. <strong>Using</strong> these classes your applications can:<br />

• Send and receive email messages using the SMTP and POP protocols.<br />

• Send and receive files using the FTP protocol.<br />

• Make HTTP requests to an external HTTP Server.<br />

• Parse URL strings into constituent pieces.<br />

This chapter describes the these classes. You can also refer to the documentation for the<br />

specific classes.<br />

24.1 Email<br />

Basically, email (electronic mail) works by sending messages (which have a specific format)<br />

across the internet using a set of standard protocols. <strong>Caché</strong> provides classes that support two<br />

of these protocols (SMTP and POP3). In addition, <strong>Caché</strong> provides a class, %Net.MailMessage,<br />

that represents an object version of an email message.<br />

24.1.1 Mail Messages<br />

The %Net.MailMessage class is used to represent email messages for both sending and<br />

receiving email. It contains properties that correspond to the various parts of an email message.<br />

These properties are divided into those that represent the header (whom the message is<br />

<strong>Using</strong> <strong>Caché</strong> <strong>Objects</strong> 197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!