469,903 Members | 1,552 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Creating an Email containing a Web site form

I would like to write a generalised page which creates an email
containg the (calling) HTML form complete with the user populated
data.

In this way the appearance of the email will be just like the form
elements of the form that called the generalised page together with
the completed fields.

I can see that I can caputure the (blank) calling page itself in the
email by using the CreateMHTMLBody method of CDO. I can also see how I
can retreive the individual elements of the form using Request. But is
it possible to combine the two?

Any guidance greatly appreciated.
Jul 19 '05 #1
2 2225
You can create a form in an html e-mail just fine, but the action of the
form will have to be a fully qualified url to your site, like

<form action="http://yoursite.com/page.asp" ...>

If I were you though, I'd just send a link to a form on a website though.
Not every e-mail program will display the form (or any html) or allow
submission of forms.

Ray at work

"Alan Morris" <al**@address.withheld.com> wrote in message
news:1n********************************@4ax.com...
I would like to write a generalised page which creates an email
containg the (calling) HTML form complete with the user populated
data.

In this way the appearance of the email will be just like the form
elements of the form that called the generalised page together with
the completed fields.

I can see that I can caputure the (blank) calling page itself in the
email by using the CreateMHTMLBody method of CDO. I can also see how I
can retreive the individual elements of the form using Request. But is
it possible to combine the two?

Any guidance greatly appreciated.

Jul 19 '05 #2
Ray,

Thanks your suggestion on this, what I was trying to do is capture the
completed form (not just the form data fields) as filled out by the
user. The idea is to create a system to replace/emulate an existing
paper forms with EMail based forms.

So the email recipient 'sees' the form as completed by the user, and
is able to file as he/she would have done with a piece of paper.

I want the asp that actually creates the mail message to be general in
teh sense that it does it (te above) for any calling page.

Rgds

On Fri, 17 Oct 2003 10:22:13 -0400, "Ray at <%=sLocation%>"
<myfirstname at lane34 dot com> wrote:
You can create a form in an html e-mail just fine, but the action of the
form will have to be a fully qualified url to your site, like

<form action="http://yoursite.com/page.asp" ...>

If I were you though, I'd just send a link to a form on a website though.
Not every e-mail program will display the form (or any html) or allow
submission of forms.

Ray at work

"Alan Morris" <al**@address.withheld.com> wrote in message
news:1n********************************@4ax.com.. .
I would like to write a generalised page which creates an email
containg the (calling) HTML form complete with the user populated
data.

In this way the appearance of the email will be just like the form
elements of the form that called the generalised page together with
the completed fields.

I can see that I can caputure the (blank) calling page itself in the
email by using the CreateMHTMLBody method of CDO. I can also see how I
can retreive the individual elements of the form using Request. But is
it possible to combine the two?

Any guidance greatly appreciated.


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

88 posts views Thread by Mike | last post: by
117 posts views Thread by Steevo | last post: by
11 posts views Thread by Webster | last post: by
6 posts views Thread by MikeSwann | last post: by
1 post views Thread by archana | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.