If you want to make it dynamic, you can try something like this.
<cfset pagetoemail = #RemoveChars(cgi.path_info, 1, 1)#>
You may have to mess with the above statement to get it to work
<input type="hidden" name="PageToEmail" value="#pagetoemail#">
Pass this in your form.
Use this to send to the form.
<cfmail to="#form.ReceiverEmail#" from="#form.SenderEmail#" subject="A link
you might be interested in." type="HTML">
<cfhttp url="http://www.yourdomain.com/#form.pagetoemail#" method="GET"
resolveurl="false">
#form.emailmessage#<br><br>
#ReplaceNoCase(cfhttp.filecontent, "images/",
"http://www.yourdomain.com/images/, "ALL")#
</cfmail>
----- Original Message -----
From: "Adkins, Randy" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, April 27, 2001 3:11 PM
Subject: RE: send html page using CFMAIL
> Your on the right tack:
>
> <cfmail From="#form.sender#" to="#Form.Email#" subject="#Form.message#",
> type="HTML">
> <cfinclude template="Whateverthepage.cfm">
>
> </cfmail>
>
>
>
> -----Original Message-----
> From: FARRAH NG [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 27, 2001 2:23 PM
> To: CF-Talk
> Subject: send html page using CFMAIL
>
>
> I am working on a web page in which there is a "send this page to
> your friend" feature. If there is anyone who had worked on this
> before please give me some idea how it can be done with CFMAIL.
>
> My coding in the action page is like :
>
>
> <cfmail From="#form.sender#" to="#Form.Email#" subject="#Form.message#",
> type="HTML">
>
> </cfmail>
>
> *****************
>
> but i am wondering where i should put the "sent page" information
> so the email will have that particular page embedded in it.
>
> thank to all of you.
>
>
>
> --------------------------------------------------------------------------
> Global Internet phone calls, voicemail, fax, e-mail and instant messaging.
> Sign-up today at http://www.hotvoice.com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists