22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

Adding a custom header to a message<br />

When the recipient of an e-mail message replies to the message, the reply is sent, by default, to<br />

the address specified in the From field of the original message. You can use to provide a<br />

Reply-To e-mail address that tells the mail client to override the value in the From field. Using<br />

cfmailparam, the reply to the following example is addressed to<br />

widget_master@YourCompany.com:<br />

<br />

<br />

Dan,<br />

Thanks very much for the sending the widget press release and graphic.<br />

I’m now the company’s Widget Master and am accepting e-mail at<br />

widget_master@YourCompany.com.<br />

See you at Widget World 2002!<br />

Jake<br />

<br />

NOTE<br />

You can combine the two uses of cfmailparam within the same <strong>ColdFusion</strong> page. Write a<br />

separate cfmailparam tag for each header and for each attached file.<br />

Receiving e-mail messages<br />

You create <strong>ColdFusion</strong> pages to access a Post Office Protocol (POP) server to retrieve e-mail<br />

message information. <strong>ColdFusion</strong> can then display the messages (or just header information),<br />

write information to a database, or perform other actions.<br />

The tag lets you add Internet mail client features and e-mail consolidation to applications.<br />

Although a conventional mail client provides an adequate interface for personal mail, there are<br />

many cases in which an alternative interface to some mailboxes is advantageous. You use<br />

cfpop to develop targeted mail clients to suit the specific needs of a wide range of<br />

applications. The cfpop tag does not work with the other major e-mail protocol, Internet<br />

Mail Access Protocol (IMAP).<br />

Here are three instances in which implementing POP mail makes sense:<br />

■ If your site has generic mailboxes that are read by more than one person<br />

(sales@yourcompany.com), it can be more efficient to construct a <strong>ColdFusion</strong> mail front<br />

end to supplement individual user mail clients.<br />

1428 Sending and Receiving E-Mail

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

Saved successfully!

Ooh no, something went wrong!