Send web page usng ASP

Discussion in 'ASP General' started by RICHARD BROMBERG, Mar 19, 2005.

  1. 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. ?
     
    RICHARD BROMBERG, Mar 19, 2005
    #1
    1. Advertising

  2. RICHARD BROMBERG

    Steven Burn Guest

    <%
    Dim sTemp, sSubject, sRecipient
    sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
    sSubject = "Whatever"
    sRecipient = ""
    %>

    <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" <> wrote in message news:IV0%d.419442$...
    >
    > 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. ?
    >
    >
     
    Steven Burn, Mar 19, 2005
    #2
    1. Advertising

  3. 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" <> wrote in message
    news:ekFX%...
    <%
    Dim sTemp, sSubject, sRecipient
    sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
    sSubject = "Whatever"
    sRecipient = ""
    %>

    <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" <> wrote in message
    news:IV0%d.419442$...
    >
    > 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. ?
    >
    >
     
    RICHARD BROMBERG, Mar 20, 2005
    #3
  4. RICHARD BROMBERG

    Steven Burn Guest

    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" <> wrote in message news:nb3%d.153618$...
    > 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" <> wrote in message
    > news:ekFX%...
    > <%
    > Dim sTemp, sSubject, sRecipient
    > sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
    > sSubject = "Whatever"
    > sRecipient = ""
    > %>
    >
    > <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" <> wrote in message
    > news:IV0%d.419442$...
    > >
    > > 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. ?
    > >
    > >

    >
    >
     
    Steven Burn, Mar 20, 2005
    #4
  5. Steve

    Many thanks .


    Dick Bromberg
    "Steven Burn" <> wrote in message
    news:...
    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" <> wrote in message
    news:nb3%d.153618$...
    > 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" <> wrote in message
    > news:ekFX%...
    > <%
    > Dim sTemp, sSubject, sRecipient
    > sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
    > sSubject = "Whatever"
    > sRecipient = ""
    > %>
    >
    > <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" <> wrote in message
    > news:IV0%d.419442$...
    > >
    > > 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. ?
    > >
    > >

    >
    >
     
    RICHARD BROMBERG, Mar 21, 2005
    #5
  6. RICHARD BROMBERG

    Steven Burn Guest

    Your welcome ;o)

    --
    Regards

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

    Keeping it FREE!

    "RICHARD BROMBERG" <> wrote in message news:4JC%d.159361$...
    > Steve
    >
    > Many thanks .
    >
    >
    > Dick Bromberg
    > "Steven Burn" <> wrote in message
    > news:...
    > 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" <> wrote in message
    > news:nb3%d.153618$...
    > > 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" <> wrote in message
    > > news:ekFX%...
    > > <%
    > > Dim sTemp, sSubject, sRecipient
    > > sTemp = Request.ServerVariables("url") & "?" & Request.Querystring
    > > sSubject = "Whatever"
    > > sRecipient = ""
    > > %>
    > >
    > > <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" <> wrote in message
    > > news:IV0%d.419442$...
    > > >
    > > > 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. ?
    > > >
    > > >

    > >
    > >

    >
    >
     
    Steven Burn, Mar 21, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?S2V2aW4gQnVydG9u?=

    Pre-Send Request Headers, Pre-Send Request Content

    =?Utf-8?B?S2V2aW4gQnVydG9u?=, Dec 31, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,090
    =?Utf-8?B?S2V2aW4gQnVydG9u?=
    Dec 31, 2004
  2. msnews
    Replies:
    7
    Views:
    565
  3. Nathan Sokalski
    Replies:
    3
    Views:
    1,959
    Larry Lard
    Nov 23, 2005
  4. simpleman
    Replies:
    8
    Views:
    1,013
    John Harrison
    Oct 26, 2004
  5. =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=

    Send page requset of page.txt to IIS.ASP

    =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?=, Sep 15, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    492
    Steven Cheng[MSFT]
    Oct 4, 2006
Loading...

Share This Page