473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Send web page usng ASP


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. ?
Jul 22 '05 #1
5 1636
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "so*****@example.com"
%>

<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" <di******@worldnet.att.net> wrote in message news:IV********************@bgtnsc05-news.ops.worldnet.att.net...

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. ?



Jul 22 '05 #2
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" <so*******@in-time.invalid> wrote in message
news:ek****************@TK2MSFTNGP15.phx.gbl...
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "so*****@example.com"
%>

<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" <di******@worldnet.att.net> wrote in message
news:IV********************@bgtnsc05-news.ops.worldnet.att.net...

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. ?

Jul 22 '05 #3
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" <di******@worldnet.att.net> wrote in message news:nb********************@bgtnsc04-news.ops.worldnet.att.net...
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" <so*******@in-time.invalid> wrote in message
news:ek****************@TK2MSFTNGP15.phx.gbl...
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "so*****@example.com"
%>

<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" <di******@worldnet.att.net> wrote in message
news:IV********************@bgtnsc05-news.ops.worldnet.att.net...

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. ?




Jul 22 '05 #4
Steve

Many thanks .
Dick Bromberg
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl...
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" <di******@worldnet.att.net> wrote in message
news:nb********************@bgtnsc04-news.ops.worldnet.att.net...
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" <so*******@in-time.invalid> wrote in message
news:ek****************@TK2MSFTNGP15.phx.gbl...
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "so*****@example.com"
%>

<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" <di******@worldnet.att.net> wrote in message
news:IV********************@bgtnsc05-news.ops.worldnet.att.net...

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. ?


Jul 22 '05 #5
Your welcome ;o)

--
Regards

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

Keeping it FREE!

"RICHARD BROMBERG" <di******@worldnet.att.net> wrote in message news:4J********************@bgtnsc04-news.ops.worldnet.att.net...
Steve

Many thanks .


Dick Bromberg
"Steven Burn" <so*******@in-time.invalid> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl...
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" <di******@worldnet.att.net> wrote in message
news:nb********************@bgtnsc04-news.ops.worldnet.att.net...
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" <so*******@in-time.invalid> wrote in message
news:ek****************@TK2MSFTNGP15.phx.gbl...
<%
Dim sTemp, sSubject, sRecipient
sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
sSubject = "Whatever"
sRecipient = "so*****@example.com"
%>

<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" <di******@worldnet.att.net> wrote in message
news:IV********************@bgtnsc05-news.ops.worldnet.att.net...

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. ?





Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Erik T. Nomad | last post by:
I've created a link that will enable the reader of any page on my website to click it, enter an e-mail address, and have it arrive in that inbox with a hyperlink to the site. However, I'm...
5
by: Pete Loveall | last post by:
I have a server application that monitors a private local queue for messages. The message sent to it has a label and a response queue defined. It works correctly when the queue is accessed via...
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
1
by: sameer | last post by:
hi all, i have hooked my website to paypal and other e merchant accounts for accepting credit cards. When a payment is done they post the data to my website. i process the data and update the...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
1
by: ABCL | last post by:
Hi I have aspx page that has a html link on it( <a href="javascript:window.open('xxx.aspx')";..) When I click this link If should open new window usng javascript, But it gives me a message...
1
by: mikeee | last post by:
Hi Can u suggest me some idea in proceedin with a javascript. My requirement is I am giving a user search which displays with the user results and all groups..I have radio button thru which I...
3
digicrowd
by: digicrowd | last post by:
http://bytes.com/images/howtos/applemail_sig_icon.jpg You can make your emails fancy in Mail.app by using Rich Text formatting or even included Stationery. But, a simple way to send your own HTML...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.