Using <cfset Email.To = "whatever"> is trying to set a key called To in a
Structure called Email. The error seems to indicate that Email is not
actually a Structure, though. <cfset Email = StructNew()> will declare Email
as a Structure.

On Wed, Feb 20, 2008 at 10:55 AM, Rick Faircloth <[EMAIL PROTECTED]>
wrote:

> Hi, all…
>
> I knew I'd get into some hairy error messages once I moved from
> CF 4.5 to CF 8… well I got one.  (Thanks, Will… ;o)
>
> "dereference a scalar variable of type class java.lang.String
>  as a structure with members"  ???  Come on, what in the world!
>
> Anyway, what does this mean?  I haven't had any problems with this
> way of setting up email variables until I started working on a form
> on another part of the site this morning…
>
> Thanks,
>
> Rick
>
>
> ====================================================================================================
> =========
>
> The following information is meant for the website developer for debugging
> purposes.
>
> Error Occurred While Processing Request
> You have attempted to dereference a scalar variable of type class
> java.lang.String as a structure
> with members.
>
>
>
> The error occurred in E:\Inetpub\webroot\c21-ar\Application.cfm: line 8
> 6 :  <!--- Setup variables for homepage visit email notice --->
> 7 :
> 8 :    <CFSET Email.To = "[EMAIL PROTECTED]">
> 9 :      <CFSET Email.From = "[EMAIL PROTECTED]">
> 10 :     <CFSET Email.Subject = "Visitor to the Century 21 Action Realty
> Development Site">
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299438
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to