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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Problem with Mail Form

    Hello All. I'm new to the forum and a very new HTML user, so I'm hoping someone can help me out here. I'm trying to set up a small form on my website so that users can sign up for future email updates. The form will enable users to put in a name and email address. When the submit button is pressed, it should send me an email with those two pieces of information.

    The template I'm using for my website had the form built with a few "fill-in-the-blanks." My hosting is through GoDaddy, so "gdform.asp" is the form mailer that's on my server. I went through my GoDaddy hosting services to assign {email removed} as the email address associated with the form mailer. Here's the code:

    Code:
    <form method="post" enctype="multipart/form-data" action="gdform.asp"> <input value="{removed}" name="sendtoemail" type="hidden" /> <input value="{removed}" name="redirect" type="hidden" /><input value="Email Update Subscription from Your Website" name="subject" type="hidden" /><input class="inputstyle" value="Your name" name="name" type="text" /><input class="inputstyle" value="Your email address" name="email" type="text" />
    <input class="button" value="subscribe" type="submit" /></form>
    Now, when I test the form on my site, I get the following error:

    "No variables sent to form! Unable to process request."

    Thoughts on how to fix this?
    Last edited by Fou-Lu; 04-27-2012 at 04:21 PM.

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,928
    Thanks
    46
    Thanked 203 Times in 202 Posts
    need to see "gdform.asp" and also needs to be moved to asp section of forum- will be picked up and answered more swiftly there

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • Users who have thanked alykins for this post:

    Questorps7 (04-03-2012)

  • #3
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks. I'll do that and delete this post so as not to cross-pollinate.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,928
    Thanks
    6
    Thanked 1,041 Times in 1,014 Posts
    Quote Originally Posted by Questorps7 View Post
    Thanks. I'll do that and delete this post so as not to cross-pollinate.
    No, don’t do that. I’m gonna move your thread there.

  • #5
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    Code:
    <form method="post" enctype="multipart/form-data" action="gdform.asp">
    <input value="{removed}" name="sendtoemail" type="hidden" /> 
    <input value="{removed}" name="redirect" type="hidden" />
    <input value="Email Update Subscription from Your Website" name="subject" type="hidden" />
    <input class="inputstyle" value="Your name" name="name" type="text" />
    <input class="inputstyle" value="Your email address" name="email" type="text" />
    <input class="button" value="subscribe" type="submit" />
    </form>
    Looks right to me. Except that I never have needed to use enctype="multipart/form-data" with method="post" in ASP. Usually, that is reserved for forms that upload images.

    Try removing that.

    If that doesn't solve it, you should probably open a tech support ticket with GoDaddy. If you don't get a good answer the first time, ask to escalate it to someone who knows ASP. There are a few good tech support people at GoDaddy who know ASP and should be able to help.
    Last edited by Fou-Lu; 04-27-2012 at 04:21 PM.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #6
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    OK -- I removed enctype="multipart/form-data". I also changed the input value from the whole web address (which was giving me a 404 error) simply to index.html. Here's what the code looks like now:

    Code:
    <form method="post" action="gdform.asp"> <input value="{removed}" name="sendtoemail" type="hidden" /> <input value="index.html" name="redirect" type="hidden" /><input value="Email Update Subscription from Your Website" name="subject" type="hidden" /><input class="inputstyle" value="Your name" name="name" type="text" /><input class="inputstyle" value="Your email address" name="email" type="text" /><input class="button" value="subscribe" type="submit" /></form>
    I'm not getting the error anymore, and when I press the submit button it simply redirects to my homepage. However, I also haven't gotten the email that the form should have sent yet. I don't know how long this should take -- if the email should be instantaneous or if it will come in a few hours.
    Last edited by Fou-Lu; 04-27-2012 at 04:21 PM.

  • #7
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    GoDaddy isn't instantaneous, but it shouldn't take more than a couple of hours.

    I don't use their gdform.asp, but I do use ASP code on their pages to send email. *Sometimes* it comes through within a few minutes, but other times it takes 2 to 3 hours.

    You know, if you want more control of your email, you can write an email sending page yourself. Allows you to customize it more, send a CC: or BCC: to others, etc. gdform.asp is pretty basic.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #8
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    More than 12 hours later and no email. Thoughts on what to do next? Perhaps a call to GoDaddy is in order? Thanks also for all your assistance so far.

  • #9
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    Better to use their online form to report a problem than call. If you call, you get next available person who may or may not know anything at all about ASP code. If you report in online, then it *does* get directed to somebody who at least has heard of ASP. You also then get an incident number (or whatever they call it) so you can escalate the problem to somebody more knowledgeable. Which you shouldn't hesitate doing.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #10
    New to the CF scene
    Join Date
    Apr 2012
    Location
    Scottsdale, AZ
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post
    With the Go Daddy form mailers you cannot send to @aol.com, @gmail.com, @hotmail.com, @msn.com, or @yahoo.com addresses. You will need to change the address you are sending to for it to work properly. You can read more here and here.
    Last edited by Mike_GoDaddy; 04-05-2012 at 10:04 PM. Reason: forgot second link

  • #11
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    Oh, DOH! I knew that!

    I read that just the other day when helping somebody out using the PHP emailer.

    That's not a restriction if you write your own emailer, using CDO.Message.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #12
    New to the CF scene
    Join Date
    Apr 2012
    Location
    Scottsdale, AZ
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post
    With your own script that does not use Go Daddy's code you can send to addresses at those providers. You cannot use them in the from address as those providers see that as spoofing and the message may not send properly.

  • #13
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,652
    Thanks
    80
    Thanked 4,640 Times in 4,602 Posts
    In fact, just to be safe, I use an email address at GoDaddy as the from address. Not sure that matters, since the SMTP server apparently isn't co-located with the web server. But doing so has always then worked for me.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #14
    New to the CF scene
    Join Date
    Apr 2012
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Mike_GoDaddy View Post
    With the Go Daddy form mailers you cannot send to @aol.com, @gmail.com, @hotmail.com, @msn.com, or @yahoo.com addresses. You will need to change the address you are sending to for it to work properly. You can read more here and here.
    Ugh, so that pretty much excludes everything I have. What if I use a PHP mailer instead of gdform.asp? I'm really new to all of this so I have almost no idea what I'm doing.

  • #15
    New to the CF scene
    Join Date
    Apr 2012
    Location
    Scottsdale, AZ
    Posts
    8
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Questorps7 View Post
    Ugh, so that pretty much excludes everything I have. What if I use a PHP mailer instead of gdform.asp? I'm really new to all of this so I have almost no idea what I'm doing.
    If you write your own form you can use those addresses as the to address, just not the from address. You can do this with ASP or PHP.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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