• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Sending E-mail with ColdFusio... > Sending Messages with the <cfmail> T...

Sending Messages with the <cfmail> Tag

The <cfmail> tag is easy to use and allows surprising flexibility in how you compose your outgoing e-mail messages. <cfmail> has both an opening and a closing tag. The body of the message goes between the tags, and the attributes of the opening tag control, for example, who receives the message, who the message is from, and the subject of the message.

For <cfmail> to send messages successfully, you need to specify an SMTP server for it to work with either in the tag itself or through the ColdFusion Administrator. If you have access to the Administrator, try logging in and selecting the link in the left frame labeled Mail Server. When you do, you see a screen like the one in Figure 8.1.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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