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.

Internet Classes<br />

addressed to , its subject, etc.) and those that represent the content or body of the message.<br />

The content properties are inherited from the %Net.MailMessagePart class.<br />

24.1.1.1 Message Headers<br />

The header information of the %Net.MailMessage class includes the following:<br />

• To—the list of email addresses this message will be sent (or was sent) to.<br />

• From—the email address this message is sent from. When sending email, your application<br />

must provide a value for this property.<br />

• Date—the date that this message was retrieved as reported by the mail server.<br />

• Subject—a string containing the subject for this message.<br />

• Sender—the actual sender of the message as reported by the mail server.<br />

• Cc—the list of carbon copy addresses this message will be sent (or was sent) to.<br />

24.1.1.2 Message Content<br />

The content of an email message can vary from a simple block of text to complex data represented<br />

using MIME.<br />

24.1.2 Sending Email<br />

<strong>Caché</strong> supports sending email messages using SMTP (Simple Mail Transport Protocol).<br />

24.1.3 Receiving Email<br />

A <strong>Caché</strong> application can download and process email messages from a mail server using the<br />

POP3 protocol.<br />

Note:<br />

<strong>Caché</strong> is not and does not contain a mail server. In order to process in-coming email<br />

messages within <strong>Caché</strong> you must have a running mail server. What <strong>Caché</strong> provides<br />

is the ability to connect to and interact with a mail server using the POP3 protocol.<br />

The interface for interacting with a mail server is provided by the %Net.FetchMailProtocol<br />

class. This abstract class includes a set of protocol-neutral methods for interacting with a mail<br />

server. Actual communication with a mail server using a specific protocol is provided by a<br />

subclass of %Net.FetchMailProtocol. <strong>Caché</strong> supports the POP3 protocol (the only one supported<br />

at this time) using the %Net.POP3 class.<br />

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

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

Saved successfully!

Ooh no, something went wrong!