Issue with PHP Email form... emails don't send

Discussion in 'PHP' started by WebDev Solutions, Nov 13, 2011.

  1. #1
    Hi,

    I have a PHP email form on my website, it's located here: http://xrumergeek.com/contact_us.html

    If you try to send an email, you will a popup box comes up with the following message:

    The form validates! (Normally, it would submit the form here)
    Code (markup):
    Can someone please help me so the email actually sends, as right now it doesn't.

    Furthermore, how do I edit the code to make it not mandatory to enter a phone number?

    Thanks!
     
    WebDev Solutions, Nov 13, 2011 IP
  2. avinash gaud

    avinash gaud Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    26
    #2
    Hello,

    Remove the alert box which contains "The form validates! (Normally, it would submit the form here)" by commenting in the code or by deleting it from the code.
     
    avinash gaud, Nov 13, 2011 IP
  3. WebDev Solutions

    WebDev Solutions Well-Known Member

    Messages:
    1,644
    Likes Received:
    80
    Best Answers:
    2
    Trophy Points:
    170
    #3
    Do you know which file I should be editing to do this?
     
    WebDev Solutions, Nov 13, 2011 IP
  4. avinash gaud

    avinash gaud Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    26
    #4
    Hello,

    contact.js


    $(document).ready(function(){
    $("#contactformlite").RSV({ onCompleteHandler: myOnComplete, displayType: "display-html", errorFieldClass: "errorField", rules: [ "required,Full_Name,Please enter your Full Name.", "required,Email_Address,Please enter your Email Address.", "valid_email,Email_Address,Please enter a valid Email Address.", "required,Telephone_Number,Please enter your Telephone Number.", "required,Your_Message,Please enter Your Message." ] }); function myOnComplete() { var str = $("#contactformlite").serialize(); $("#rsvErrors").fadeIn(1500, function() { $(this).html("<p><img src='images/ajax-loader.gif' /></p>"); }); Comment this line ->alert("The form validates! (normally, it would submit the form here)."); $.ajax({ type: "POST", url: "process-contact.php", data: str, success: function(msg) { $("#rsvErrors").html("<p class='success'>Contact Form Submitted!</p>") .append("<p class='success'>We will be in touch soon.</p>") .hide() .fadeIn(1500, function() { clearForm($("#contactformlite")); //resetForm($("#contactformlite")) }); } }); return false; } });
     
    avinash gaud, Nov 13, 2011 IP
  5. WebDev Solutions

    WebDev Solutions Well-Known Member

    Messages:
    1,644
    Likes Received:
    80
    Best Answers:
    2
    Trophy Points:
    170
    #5
    What do you mean by "comment this line"?

    Thanks,...
     
    WebDev Solutions, Nov 14, 2011 IP
  6. avinash gaud

    avinash gaud Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    26
    #6
    Hello,

    Please remove the line from your contact.js and save the file and then run the code

    alert("The form validates! (normally, it would submit the form here).");
     
    avinash gaud, Nov 14, 2011 IP
  7. WebDev Solutions

    WebDev Solutions Well-Known Member

    Messages:
    1,644
    Likes Received:
    80
    Best Answers:
    2
    Trophy Points:
    170
    #7
    I just removed it and uploaded the edited file to my server.... the validates form no longer displayed but emails still did not send.

    When this didn't work I replaced the code, but now when I try to submit the contact form it simply refreshes the page and the mail still does not get sent.
     
    WebDev Solutions, Nov 14, 2011 IP
  8. avinash gaud

    avinash gaud Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    26
    #8
    Hello, Did you checked your submitted values on process-contact.php page ? may be something is wrong within your process-contact.php page code.
     
    avinash gaud, Nov 14, 2011 IP
  9. Javed iqbal

    Javed iqbal Well-Known Member

    Messages:
    445
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #9
    send me all code i will solve it for you
     
    Javed iqbal, Nov 14, 2011 IP
  10. WebDev Solutions

    WebDev Solutions Well-Known Member

    Messages:
    1,644
    Likes Received:
    80
    Best Answers:
    2
    Trophy Points:
    170
    #10
    Hi, how can I send you it..? Thanks..
     
    WebDev Solutions, Nov 14, 2011 IP
  11. Javed iqbal

    Javed iqbal Well-Known Member

    Messages:
    445
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #11
    javed3iqb is gmail and skype
     
    Javed iqbal, Nov 14, 2011 IP
  12. WebDev Solutions

    WebDev Solutions Well-Known Member

    Messages:
    1,644
    Likes Received:
    80
    Best Answers:
    2
    Trophy Points:
    170
    #12
    To anyone reading this, the issue still has not been fixed.

    Can anyone offer to help with this?

    Edit: Nevermind, I have the original coder looking into it now...

    Thanks,
    WebDev
     
    Last edited: Nov 16, 2011
    WebDev Solutions, Nov 16, 2011 IP
  13. ewebsolutions

    ewebsolutions Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I faced some problem when i sent email through php scripts. After i sent email all emails go to spam box.
    Why is this happen ?? I m confusing about that :confused:
     
    ewebsolutions, Nov 16, 2011 IP