In order for the CFMAIL tag to work, your code for the tag needs to be set to localhost as the server, it also needs to have a valid To & From format and Subject. (Those 3 fields are required, below is a sample script with additional options.)
<cfmail to = "recipient"
from = "sender"
cc = "copy_to"
Bcc = "blind_copy_to"
subject = "msg_subject"
type = "msg_type"
maxRows = "max_msgs"
MIMEAttach = "path"
query = "query_name"
group = "query_column"
groupCaseSensitive = "Yes" or "No"
startRow = "query_row"
server = "servername"
port = "port_ID"
mailerID = "headerid"
timeout = "seconds">
http://www.adobe.com/livedocs/coldfusion/5.0/CFML_Reference/Tags65.htm