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

Receiving E-Mail

You can use the <cfpop> tag to read e-mails. This tag uses the POP server to receive the e-mails. The attributes associated with this tag are described in Table 27.2.

Table 27.2. The <cfpop> Tag’s Attributes
Attribute Feature Optional?
Server Specifies the hostname or the IP address of the POP3 server. You cannot connect to the POP3 server without the complete IP address. No
Username Specifies the name of the user. If no name is specified, the POP connection is anonymous. Yes
Password Specifies the password of the user. Yes
Action Specifies the action to perform after connecting to the server. It takes three values. GetHeaderOnly retrieves the complete or partial list of the message readers only. GetAll retrieves the header as well as content of one or more messages received in the mailbox. Delete removes the messages from the inbox on the POP server. The default action is to retrieve a list of message headers only if no value is assigned to Action. Yes
Name Specifies the name of the ColdFusion query to store the results. Yes
Port Specifies the port number, which the POP server uses. The default port number is 110. Yes
Messagenumber Specifies the message number on which the Action attribute will work. It accepts single numbers as well as comma-delimited lists of numbers. It ignores invalid message numbers. Yes
Attachmentpath Specifies the path to store the incoming attachment files. Yes
Timeout Specifies how long (in seconds) the server waits to process the e-mails. The default value is 60 seconds. Yes
Maxrows Specifies the number of e-mails to retrieve. This value is ignored if Messagenumber is specified. Yes
Startrow Specifies the first message to retrieve. This value is also ignored if Messagenumber is specified. The default value is 1. Yes
Generateuniquefilenames Takes a Boolean value. If the value is set to TRUE, unique names are assigned to the incoming files. Yes



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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