OK. Well, sorry about the off-topic post, but I need to get a plaintext
email
rendered properly. I'm using this CF code without avail, if someone can shed
some light I would REALLY appreciate it.

<cfsavecontent variable="plaintext">
<p>Thank you for requesting to receive future membership renewal reminders
from acme email services.</p>
<p>Please click on the following link to verify your email address and
confirm your request:</p>
<P><a
href="https://test.acme.net/servlet/wppdispatcher?whocalled=subscribe";>https
://test.acme.net/servlet/wppdispatcher?whocalled=subscribe</a></P>
<P>If you have changed your mind or did not request this service, there is
nothing more for you do.  You will not be confirmed to receive email renewal
reminders if you do not click on the link above.</P>
<p>Thank you for requesting email renewal reminders from acme!</P>
<P>You are receiving this email because you previously requested this
service on our website (<a
href="http://www.acme.net/";>http://www.acme.net/</a>) or when you contacted
acme's member service call center.</P>
</cfsavecontent>

BEFORE: <cfoutput>#plaintext#</cfoutput>
<BR><BR>

<cfset startPos=1>
<cfloop condition="true EQ true">
<cfif ReFind("href=""([a-zA-Z0-9\._\?&\-\%/:=><]+)""", plaintext, startpos)
is not 0>
<cfset regExp = ReFind("href=""([a-zA-Z0-9\._\?&\-\%/:=><]+)""", plaintext,
startpos, "true")>
<cfset startPos = regExp.pos[2] + regExp.len[2] + 1>
<cfset plaintext = REReplaceNoCase(plaintext,
"href=""([a-zA-Z0-9\._\?&\-\%/:=><]+)""", Mid(plaintext, regExp.pos[2],
regExp.len[2]), "ALL")>
<cfif plaintext contains "wpp">
        <cfset ext = "&aes_id=<:aes_id:>">
        <cfset newcontentX = left(plaintext,startpos-2)&ext>
        <!--- newcontentX = <cfoutput>#newcontentX#</cfoutput><br> --->
        <cfset newcontentEND = right(plaintext,len(plaintext)-(startPos-2))>
        <!--- newcontentEND = <cfoutput>#newcontentEND#</cfoutput><br> --->
        <cfset plaintext = newcontentX&newcontentEND>
</cfif>
<cfelse>
<cfbreak>
</cfif>
</cfloop>

<cfoutput>AFTER PLAINTEXT: #plaintext#</cfoutput>


Thanks, Jose


-----Original Message-----
From: Howie Hamlin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 1:33 PM
To: inFusion Support List
Subject: Re: [iMS] RenderPlaintext Format Question


The places where there are no spaces are because CRLF pairs are white space
in HTML.  I guess that the tag should replace a CRLF pair with a space,
though.  As for the <P> tags not becomming CRLF - I'll have to have that
checked.

We're planning on an upgrade for the v3.3 tag and then the release of a 3.4
tag with some additional functionality.

Regards,

Howie

----- Original Message -----
From: "Jose Gosende" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 29, 2003 10:38 AM
Subject: [iMS] RenderPlaintext Format Question


> When I pass the following HTML code to the CFX using the RenderPlaintext
> attribute I get malformed plaintext content in my email.
>
> HTML Source
> <P>Thank you for requesting to receive future membership renewal reminders
> from Xert email services.</P>
> <P>Please click on the following link to verify your email address and
> confirm your request:</P>
> <P><A
>
href="https://test.xert.net/servlet/wppdispatcher?whocalled=subscribe";>https
> ://test.xert.net/servlet/wppdispatcher?whocalled=subscribe</A></P>
> <P>If you have changed your mind or did not request this service, there is
> nothing more for you do.&nbsp; You will not be confirmed to receive email
> renewal reminders if you do not click on the link above.</P>
> <P>Thank you for requesting email renewal reminders from Xert!</P>
> <P>You are receiving this email because you previously requested this
> service on our website (<A
> href="http://www.xert.net/";>http://www.xert.net/</A>) or when you
contacted
> Xert's member service call center.</P>
>
>
> Plaintext Result
> Thank you for requesting to receive future membership renewal reminders
from
> Xert email services.Please click on the following link to verify your
email
> address and confirm your
> request:https://test.xert.net/servlet/wppdispatcher?whocalled=subscribeIf
> you have changed your mind or did not request this service, there is
nothing
> more for you do.  You will not be confirmed to receive email renewal
> reminders if you do not click on the link above.Thank you for requesting
> email renewal reminders from Xert!You are receiving this email because you
> previously requested this service on our website (http://www.xert.net/) or
> when you contacted Xert's member service call center.
>
>
> CFX Code
> <cfx_imsmail query="getRecpsGroupPLAIN"
> queryfield="emailaddress"
> header_to="<:email:>"
> header_Reply_To="#attributes.reply_to_address#"
> SMTPFROM="[EMAIL PROTECTED]"
> SMTPTO="<:email:>"
> HTML="#variables.bodyContent#"
> wordwrap="10"
> PARSETOKENS="YES"
> warnto="null"
> failto="null"
> log="yes"
> PLAINTEXTONLY="yes"
> RENDERPLAINTEXT="yes">
>
>
>
>
> TIA, Jose
>
>
==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================


Reply via email to