This code as is won't work because it's expecting a form variable.

But yes, that's a great way to test. Just hard code a variable above the
cfmail tag with an email address:

<cfset form.email = "[EMAIL PROTECTED]">

<cfmail from="#form.email#"
                to="[EMAIL PROTECTED]"
                subject="mail test!"
                type="HTML">
        this is my test message

</cfmail>



<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Steve Kahn [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 30, 2006 1:11 PM
To: CF-Talk
Subject: Ways to test cfmail tag


Were not getting any mail thru our cfmail tag and want to test it. If I put
the following code on a page and call the url will it work, or what would
you recommend as a way to test the cfmail tag? Thanks

'cfmailtest.cfm'

<cfmail from="#form.email#"
                to="[EMAIL PROTECTED]"
                subject="mail test!"
                type="HTML">
        this is my test message

</cfmail>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236595
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to