Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Send web page usng ASP

Reply
Thread Tools

Send web page usng ASP

 
 
RICHARD BROMBERG
Guest
Posts: n/a
 
      03-19-2005

I am already using ASP/Cdonts to send the contents of a Form by e-mail and
would like to include a link on my page to send the page itself by e-mail
to a named recipient.

Can anyone start me in the right direction. ?


 
Reply With Quote
 
 
 
 
Steven Burn
Guest
Posts: n/a
 
      03-19-2005
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "(E-Mail Removed)"
%>

<a href="mailto:<%=sRecipient%>?subject=<%=sSubject%> &body=<%=sTemp%>"><%=sTemp%></a>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"RICHARD BROMBERG" <(E-Mail Removed)> wrote in message news:IV0%d.419442$(E-Mail Removed)...
>
> I am already using ASP/Cdonts to send the contents of a Form by e-mail and
> would like to include a link on my page to send the page itself by e-mail
> to a named recipient.
>
> Can anyone start me in the right direction. ?
>
>


 
Reply With Quote
 
 
 
 
RICHARD BROMBERG
Guest
Posts: n/a
 
      03-20-2005
Thanks Steve

I didn't express myself clearly (as usual).

I want is the person looking at the web page to enter (into a form) his/her
name and the e-mail address of another person, the recipient.

The ASP program will read these and set up the "From" and "To" fields for
the Cdonts object . Then I will use Cdonts to send the e-mail.

I want to send the content of the actual page or at least the URL of the
page to the recipient.

I will try to convert my ASP code that reads a form and e-mails the content
of the form to a program that reads the senders name and the recipients
e-mail address and sends the page or the URL of the page.

Again Thanks.
R Bromberg




"Steven Burn" <(E-Mail Removed)> wrote in message
news:ekFX%(E-Mail Removed)...
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "(E-Mail Removed)"
%>

<a
href="mailto:<%=sRecipient%>?subject=<%=sSubject%> &body=<%=sTemp%>"><%=sTemp%></a>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"RICHARD BROMBERG" <(E-Mail Removed)> wrote in message
news:IV0%d.419442$(E-Mail Removed)...
>
> I am already using ASP/Cdonts to send the contents of a Form by e-mail and
> would like to include a link on my page to send the page itself by e-mail
> to a named recipient.
>
> Can anyone start me in the right direction. ?
>
>



 
Reply With Quote
 
Steven Burn
Guest
Posts: n/a
 
      03-20-2005
Oh right....... in that case;

<%
'// thispage.asp

Dim bConf
bConf = Request.Querystring("s")
Select Case bConf
Case "1"
sSendTo = Request.Form("txtTo") '// To name
sSendToMail = Request.Form("txtToMail") '// To e-mail
sSendFrom = Request.form("txtFrom") '// From name
sSendFromMail = Request.Form("txtFromMail") '// From mail
sSubject = "I sent this"
sPageURL = "<a href=" & Request.Form("txtURL") & ">" & Request.Form("txtURL") & "</a>"

Case Else
'// Body is stored in a hidden field
Body = Request.ServerVariables("sBody") & "?" & Request.Querystring
%>
<form action="thispage.asp?bconf=1" method="post">
<input type="hidden" name="txtURL" value="<%=Body%>">
Recipient Name: <input type="text" name="txtTo" value="">
Recipient Addr: <input type="text" name="txtToMail" value="">
Your name: <input type="text" name="txtFrom" value="">
Your Addr: <input type="text" name="txtFromMail" value="">
<input type="Submit" value="submit" name="btnSubmit">
</form>
<%
End Select
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"RICHARD BROMBERG" <(E-Mail Removed)> wrote in message news:nb3%d.153618$(E-Mail Removed)...
> Thanks Steve
>
> I didn't express myself clearly (as usual).
>
> I want is the person looking at the web page to enter (into a form) his/her
> name and the e-mail address of another person, the recipient.
>
> The ASP program will read these and set up the "From" and "To" fields for
> the Cdonts object . Then I will use Cdonts to send the e-mail.
>
> I want to send the content of the actual page or at least the URL of the
> page to the recipient.
>
> I will try to convert my ASP code that reads a form and e-mails the content
> of the form to a program that reads the senders name and the recipients
> e-mail address and sends the page or the URL of the page.
>
> Again Thanks.
> R Bromberg
>
>
>
>
> "Steven Burn" <(E-Mail Removed)> wrote in message
> news:ekFX%(E-Mail Removed)...
> <%
> Dim sTemp, sSubject, sRecipient
> sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
> sSubject = "Whatever"
> sRecipient = "(E-Mail Removed)"
> %>
>
> <a
> href="mailto:<%=sRecipient%>?subject=<%=sSubject%> &body=<%=sTemp%>"><%=sTemp%></a>
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> "RICHARD BROMBERG" <(E-Mail Removed)> wrote in message
> news:IV0%d.419442$(E-Mail Removed)...
> >
> > I am already using ASP/Cdonts to send the contents of a Form by e-mail and
> > would like to include a link on my page to send the page itself by e-mail
> > to a named recipient.
> >
> > Can anyone start me in the right direction. ?
> >
> >

>
>


 
Reply With Quote
 
RICHARD BROMBERG
Guest
Posts: n/a
 
      03-21-2005
Steve

Many thanks .


Dick Bromberg
"Steven Burn" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Oh right....... in that case;

<%
'// thispage.asp

Dim bConf
bConf = Request.Querystring("s")
Select Case bConf
Case "1"
sSendTo = Request.Form("txtTo") '// To name
sSendToMail = Request.Form("txtToMail") '// To e-mail
sSendFrom = Request.form("txtFrom") '// From name
sSendFromMail = Request.Form("txtFromMail") '// From mail
sSubject = "I sent this"
sPageURL = "<a href=" & Request.Form("txtURL") & ">" &
Request.Form("txtURL") & "</a>"

Case Else
'// Body is stored in a hidden field
Body = Request.ServerVariables("sBody") & "?" &
Request.Querystring
%>
<form action="thispage.asp?bconf=1" method="post">
<input type="hidden" name="txtURL" value="<%=Body%>">
Recipient Name: <input type="text" name="txtTo" value="">
Recipient Addr: <input type="text" name="txtToMail" value="">
Your name: <input type="text" name="txtFrom" value="">
Your Addr: <input type="text" name="txtFromMail" value="">
<input type="Submit" value="submit" name="btnSubmit">
</form>
<%
End Select
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"RICHARD BROMBERG" <(E-Mail Removed)> wrote in message
news:nb3%d.153618$(E-Mail Removed)...
> Thanks Steve
>
> I didn't express myself clearly (as usual).
>
> I want is the person looking at the web page to enter (into a form)
> his/her
> name and the e-mail address of another person, the recipient.
>
> The ASP program will read these and set up the "From" and "To" fields for
> the Cdonts object . Then I will use Cdonts to send the e-mail.
>
> I want to send the content of the actual page or at least the URL of the
> page to the recipient.
>
> I will try to convert my ASP code that reads a form and e-mails the
> content
> of the form to a program that reads the senders name and the recipients
> e-mail address and sends the page or the URL of the page.
>
> Again Thanks.
> R Bromberg
>
>
>
>
> "Steven Burn" <(E-Mail Removed)> wrote in message
> news:ekFX%(E-Mail Removed)...
> <%
> Dim sTemp, sSubject, sRecipient
> sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
> sSubject = "Whatever"
> sRecipient = "(E-Mail Removed)"
> %>
>
> <a
> href="mailto:<%=sRecipient%>?subject=<%=sSubject%> &body=<%=sTemp%>"><%=sTemp%></a>
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> "RICHARD BROMBERG" <(E-Mail Removed)> wrote in message
> news:IV0%d.419442$(E-Mail Removed)...
> >
> > I am already using ASP/Cdonts to send the contents of a Form by e-mail
> > and
> > would like to include a link on my page to send the page itself by
> > e-mail
> > to a named recipient.
> >
> > Can anyone start me in the right direction. ?
> >
> >

>
>



 
Reply With Quote
 
Steven Burn
Guest
Posts: n/a
 
      03-21-2005
Your welcome ;o)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"RICHARD BROMBERG" <(E-Mail Removed)> wrote in message news:4JC%d.159361$(E-Mail Removed)...
> Steve
>
> Many thanks .
>
>
> Dick Bromberg
> "Steven Burn" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Oh right....... in that case;
>
> <%
> '// thispage.asp
>
> Dim bConf
> bConf = Request.Querystring("s")
> Select Case bConf
> Case "1"
> sSendTo = Request.Form("txtTo") '// To name
> sSendToMail = Request.Form("txtToMail") '// To e-mail
> sSendFrom = Request.form("txtFrom") '// From name
> sSendFromMail = Request.Form("txtFromMail") '// From mail
> sSubject = "I sent this"
> sPageURL = "<a href=" & Request.Form("txtURL") & ">" &
> Request.Form("txtURL") & "</a>"
>
> Case Else
> '// Body is stored in a hidden field
> Body = Request.ServerVariables("sBody") & "?" &
> Request.Querystring
> %>
> <form action="thispage.asp?bconf=1" method="post">
> <input type="hidden" name="txtURL" value="<%=Body%>">
> Recipient Name: <input type="text" name="txtTo" value="">
> Recipient Addr: <input type="text" name="txtToMail" value="">
> Your name: <input type="text" name="txtFrom" value="">
> Your Addr: <input type="text" name="txtFromMail" value="">
> <input type="Submit" value="submit" name="btnSubmit">
> </form>
> <%
> End Select
> %>
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> "RICHARD BROMBERG" <(E-Mail Removed)> wrote in message
> news:nb3%d.153618$(E-Mail Removed)...
> > Thanks Steve
> >
> > I didn't express myself clearly (as usual).
> >
> > I want is the person looking at the web page to enter (into a form)
> > his/her
> > name and the e-mail address of another person, the recipient.
> >
> > The ASP program will read these and set up the "From" and "To" fields for
> > the Cdonts object . Then I will use Cdonts to send the e-mail.
> >
> > I want to send the content of the actual page or at least the URL of the
> > page to the recipient.
> >
> > I will try to convert my ASP code that reads a form and e-mails the
> > content
> > of the form to a program that reads the senders name and the recipients
> > e-mail address and sends the page or the URL of the page.
> >
> > Again Thanks.
> > R Bromberg
> >
> >
> >
> >
> > "Steven Burn" <(E-Mail Removed)> wrote in message
> > news:ekFX%(E-Mail Removed)...
> > <%
> > Dim sTemp, sSubject, sRecipient
> > sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
> > sSubject = "Whatever"
> > sRecipient = "(E-Mail Removed)"
> > %>
> >
> > <a
> > href="mailto:<%=sRecipient%>?subject=<%=sSubject%> &body=<%=sTemp%>"><%=sTemp%></a>
> >
> > --
> > Regards
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > "RICHARD BROMBERG" <(E-Mail Removed)> wrote in message
> > news:IV0%d.419442$(E-Mail Removed)...
> > >
> > > I am already using ASP/Cdonts to send the contents of a Form by e-mail
> > > and
> > > would like to include a link on my page to send the page itself by
> > > e-mail
> > > to a named recipient.
> > >
> > > Can anyone start me in the right direction. ?
> > >
> > >

> >
> >

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Usng more than one audio playback device Ian Bethell Windows 64bit 3 10-22-2007 09:55 AM
Send page requset of page.txt to IIS.ASP =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= ASP .Net 6 10-04-2006 01:49 AM
Send value from a asp.net page to a regular asp page.. msnews ASP .Net 7 05-24-2005 09:55 PM
Subtracting large numbers usng linked list simpleman C++ 8 10-26-2004 07:36 AM
Re: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" Natty Gur ASP .Net 0 06-06-2004 05:46 AM



Advertisments