MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 21

Developing coldfusion mx applications
Table of Contents

Advertisement

PART VII: Using External Resources
Using ColdFusion with mail servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790
Sending e-mail messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 790
Sending SMTP e-mail with cfmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791
Sample uses of cfmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792
Sending form-based e-mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792
Sending query-based e-mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 792
Sending e-mail to multiple recipients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793
Customizing e-mail for multiple recipients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794
Using cfmailparam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795
Attaching files to a message. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795
Adding a custom header to a message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
Advanced sending options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
Sending mail as HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 796
Error logging and undelivered messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
Receiving e-mail messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
Using cfpop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797
The cfpop query variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798
Handling POP mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798
About interacting with remote servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Using cfhttp to interact with the web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Using the cfhttp Get method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Creating a query object from a text file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811
Using the cfhttp Post method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 812
Performing file operations with cfftp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815
Caching connections across multiple pages . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
Connection actions and attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818
About file management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820
Using cffile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820
Uploading files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820
Moving, renaming, copying, and deleting server files . . . . . . . . . . . . . . . . . . . 825
Reading, writing, and appending to a text file. . . . . . . . . . . . . . . . . . . . . . . . . 826
Using cfdirectory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 828
Returning file information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 828
Using cfcontent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830
About MIME types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830
Changing the MIME content type with cfcontent . . . . . . . . . . . . . . . . . . . . . 830
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
. . . . . . . . . . . . . . . . . . . . . . . . . . 789
. . . . . . . . . . . . . . . . . . . . . . . . . 807
. . . . . . . . . . . . . . . . . . . . . . . . . . . 819
Contents
21

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion mx

Table of Contents