I'll take a look at that too. Thanks.

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

-----Original Message-----
From: mark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 02, 2006 1:28 PM
To: CF-Talk
Subject: RE: Including the contents of a webpage in an email with cfmail


Hey there,

I use PLUM which is a proceedural framework for coldfusion, as opposed to
the many OOP frameworks out there.  Anyway, one of the pages PLUM auto
generates with each app (which of course you can leave out if you wish) is
emailThisPage.cfm.  I didn't include the form page or the top of the action
page as they are all custom tags which will not mean anything to you since
you are not using PLUM.  However, here is the "meat" of the action page
which can help you figure it out.

If you have the time, check out plum www.productivityenhancement.com it is
free and it's the bomb.



<!---
Adding the useragent attribute publishes this request as if it were the
user's
browser rather than ColdFusion's own user agent, which may not be properly
recognized by Plum's browser detection routine.
--->
<cfhttp url="#Form.PageURL#" method="GET" resolveurl="true"
throwonerror="Yes" useragent="#CGI.HTTP_USER_AGENT#">
        <cfhttpparam type="COOKIE" name="plumCrumbs"
value="LayoutName=#URLEncodedFormat(Request.layoutName)#">
</cfhttp>

<cfmail to="#Form.EmailOfRecipient#"
        from="#Application.webmasterEmail#"
        subject="#Form.SubjectLine# (From #Form.EmailOfSender#)"
        server="#Application.mailServer#"
        type="HTML">
#Form.Message#<br>#CFHTTP.FileContent#
</cfmail>

<cflocation
url="#Application.absoluteUrlRoot#/Finished.cfm?message=#URLEncodedFormat('T
he page you requested has been sent to the specified address.')#"
addToken="No">

-----Original Message-----
From: Smith, Daron [PA] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 02, 2006 1:49 PM
To: CF-Talk
Subject: Including the contents of a webpage in an email with cfmail


Is it possible to include the actual HTML from a CF web page in a
cfmail?  We have a web content management system and it would be great
if our messages used the exact same stylesheets as our web pages and it
would make the process for end users much easier as they only need to
learn one process for editing web pages and creating email messages.

Thanks for the help,
Daron Smith
PSEA






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239311
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to