• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Day 13

Quiz

1: What is the primary function of the <CFMAIL> tag?
A1: It is used to send mail via a valid SMTP mail server.
2: What does <CFMAIL> display when it successfully sends a message?
A2: Nothing, which is why it's important to build your own confirmation messages into pages that use <CFMAIL>.
3: How do you use the results of a <CFQUERY> with a <CFMAIL> tag?
A3: You specify the QUERY parameter in your <CFMAIL> tag, and then supply query variables to any other parameters you want. For example, if your database table contained a field called user_email, you might supply the variable #user_email# with <CFMAIL>'s TO parameter to send mail to each user returned by the query .
4: What parameter must be set to use HTML code in message bodies?
A4: You use TYPE="HTML" in a <CFMAIL> tag to specify that you're sending HTML-enhanced content in your message body .
5: Name the three ACTION types used with <CFPOP>.
A5: They are GETHEADERONLY, GETALL, and DELETE.
6: How does <CFPOP> return the results of a mail check?
A6: It makes them available in the same way <CFQUERY> stores the results of a query. Each header element is assigned to a specific variable used with <CFPOP>. To display them, you'd use <CFOUTPUT query="x">, where x is the name you gave the <CFPOP> process .


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint