Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    asp opt in email submission

    I'm totally new to ASP and would appreciate any help the forum members can give me, I'm trying to create an opt in e-mail submission form but the ASP code that I have is for CDONTs which is no longer in use. What I want to do is have the e-mail addresses that are submitted sent to one of my own e-mail addresses.
    This is the form that I am using (don't know if this will help)
    but I really need help with the ASP code can anyone help me?

    <form action="/aspmailer.asp" method="POST">
    <input type="hidden" name="TGredirect" value="">
    <p>
    <font size="3">
    <font color="#FF0000">
    Join Our Monthly<br>
    Mailing List</font><br>
    <font size="2">
    <font color="#ffffff">
    Enter Your E-mail:</font><br>
    <input type="text" name="email" size="20">
    <br>
    <input type="submit" value="Sign Up">
    </form>

  • #2
    Regular Coder
    Join Date
    Sep 2004
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Post the contents of your aspmailer.asp page and we can help.

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds like you may have changed web hosts? Have you checked with your web host to see if they provide a different mailer script?
    Robert
    Gee! Web Tools
    Web Content Management / Internet Marketing modules including:
    Page Editor - Calendar Manager - News Editor - Contact Organizer - Mail Wizard

  • #4
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts

  • #5
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    478
    Thanks
    0
    Thanked 2 Times in 2 Posts
    CDO is generally used instead of CDONTS on IIS 5 and after (actually the SMTP service within IIS) which is generally on servers after Win NT4 (although I think CDONTS is sometimes still supported too).

    Here's a quickie memo to myself about converting my old CDONTS code to CDO:

    o Change objCDONTS to be called objCDO (actually this is just a cosmetic change)

    o This:
    Set objCDONTS = Server.CreateObject("CDONTS.NewMail")

    Changed to this instead:
    Set objCDO = Server.CreateObject("CDO.Message")

    o This:
    objCDONTS.Body = strEmailBody

    Changed to this instead:
    objCDO.TextBody = strEmailBody

    o This removed:
    ' Importance.
    ' (0=Low, 1=Normal, 2=High)
    objCDONTS.Importance = 1
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •