i know how you feel mate!

In the HTML, have standard placeholders, like whereever you want the name to
appear, put $NAME and for the message put $MESSAGE

This HTML is then pasted into a textarea by your user, and submitted to your
ASP page. Then you do:

Dim strMessage
strMessage = Trim(Request.Form("textarea_name"))

....

strMessage = Replace(strMessage, "$NAME", objRS("FullName"))
strMessage = Replace(strMessage, "$MESSAGE", objRS("EmailMessage"))

....

objMail.Body = strMessage

Does that make sense?

Cheers, Sam

----- Original Message -----
From: "jake williamson" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 2:31 PM
Subject: Re: automatically formatting html files for asp


>
>
> hi sam,
>
> yep, know hat you mean and would be cool if each html newsletter were
> the same.
>
> the problem that i have is that it's a fresh design each time we do a
> mailshoot, meaning muggings here has to do all that conversion work! if
> i can automate as much as possible, i love it!
>
> cheers,
>
> jake
>
> On Wednesday, September 25, 2002, at 02:02 PM, Sam Thompson wrote:
>
> > why not just have a form field allowing the user to enter the name and
> > have
> > the rest of the html already in your ASP code?
>
>
> ---
> You are currently subscribed to activeserverpages as:
[EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>


---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to