i believe the "from" field has to be an email address

----- Original Message -----
From: "Philip Arnold" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, April 13, 2003 7:14 AM
Subject: RE: using cfset in the application template


> > I'm trying to set a site wide email address to be used on all
> > the forms of this site. This is an email address that can be
> > updatable so i am trying to set it in the application.cfm
> > template. Of course I have a page that the admin can change
> > the email in the db. Then I want to add the set variable on
> > all the forms "to" fields in the emails. k, im sure you understand.
> >
> > so in the application.cfm if have my recordset:
> > <cfquery name="Memail" datasource="mydb">
> > SELECT *
> > FROM email
> > </cfquery>
> >
> > then i do my set on the application.cfm page:
> > <cfset mainEmail=#Memail.email#>
> >
> > then I have the email code:
> > <cfmail to="mainEmail"
> > from= "#trim(form.name)#"
> > subject="Contact Form">
> >
> > but its not working. Am I doing the cfset wrong in the
> > application.cfm?
>
> Apart from you not needint the #'s inside the CFSET
>
> Are you running on Linux? If so, Application.cfm must be named with the
> capital A - Linux is very case sensitive
>
> Also, you need to have #'s around the mainEmail in the CFMAIL, otherwise
> it's sending it to the email address "mainEmail", which isn't an email
> so it'll be moved to the Undelivr folder...
>
> Hope that helps
>
>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to