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: |
Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.