One key thing to remember is: "KEEP IT SIMPLE!"
Set up the following:
1. A form on your master page .
<form action="sendmail.cfm">
<input type="submit">
</form>
2. A new page called sendmail.cfm with nothing but the query /
cfmail tag.
_____
Gary L. Alford
Manufacturing Operations Project Specialist
Bell Helicopter XWorx
Phone: (817) 280-6233 Fax: (817) 278-6233
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
I have not failed. I've found 10,000 ways that won't work.
Thomas A. Edison
_____
-----Original Message-----
From: Mark Armstrong [mailto:[EMAIL PROTECTED]
Sent: Friday, January 07, 2005 2:34 PM
To: [email protected]
Subject: Re: Newbie question on mailto tag with variables (easy)
Thanks Gary, Ken,
However, I'm more shooting for an "on click" event I guess.
This isn't working, my page is erroring from nested tags or the lack of
a datasource.
<cfquery name="sendmail" datasource="clientsdatasource">
SELECT Product.Description, Product.Model
FROM Product
</cfquery>
<img src="images/interestproduct.gif" width="209" height="82"
border="0" /><cfmail to="[EMAIL PROTECTED]" query="sendmail"
from="[EMAIL PROTECTED]" subject="Client website: Interest in
#desciption# - #model#"></cfmail>
The CF mail is "processing" in the page, which I know is normal,
however, if the tag was in a JS "onclick" to then fire the query/mail
to, then I might be figuring this out.
Thanks everyone. sorry for the ignorance.
Mark
On Jan 7, 2005, at 12:38 PM, Alford, Gary L wrote:
> If your CF administrator is set up to handle e-mail, I would probably
> use
> the <cfmail... tag as follows:
>
> <cfquery name="myQuery">
> SELECT productdescription, productdetails
> FROM myTable
> </cfquery>
>
> <cfmail to="[EMAIL PROTECTED]" query="myQuery"
> subject="Interest in
> #productdescription#">
> #productdetails#
> </cfmail>
>
> I have used this before and it really works great. The e-mail address
> can
> also be dynamically populated from a query, form fields, etc.
>
> _____
>
> Gary L. Alford
> Manufacturing Operations Project Specialist
> Bell Helicopter XWorx
> Phone: (817) 280-6233 Fax: (817) 278-6233
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> I have not failed. I've found 10,000 ways that won't work.
> Thomas A. Edison
> _____
>
>
>
> -----Original Message-----
> From: Mark Armstrong [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 07, 2005 12:30 PM
> To: [email protected]
> Subject: Newbie question on mailto tag with variables (easy)
>
>
> I have a dynamic page output with client products.
>
> When they click the detail, the detail product loads of course. The
> client wants to have a graphic button, when clicked, will email the
> client the product detail in the email subject and body.
>
> sooo, this is the typical code:
>
> <a href="mailto:[EMAIL PROTECTED]"><img
> src="images/interestproduct.gif" width="209" height="82" border="0"
> /></a>
>
> I"m imagining something like:
>
> <a
> href="mailto:[EMAIL PROTECTED]
> subject=Interest%20in%20#productdesciption#?body=#productdetails#"><img
> src="images/interestproduct.gif" width="209" height="82" border="0"
> /></a>
>
> Does this look too wacky? its not working error says that the variables
> are undefined... but not true. do I need to put an output tag in the
> mail to ?
>
> Sorry for such stupidity
>
> thanks.
>
> ----------------------------------------------------------
> To post, send email to [email protected]
> To unsubscribe:
> http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe:
> http://www.dfwcfug.org/form_MemberRegistration.cfm
>
> ----------------------------------------------------------
> To post, send email to [email protected]
> To unsubscribe:
> http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe:
> http://www.dfwcfug.org/form_MemberRegistration.cfm
>
>
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe:
http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe:
http://www.dfwcfug.org/form_MemberRegistration.cfm