Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: I need help about SMTP mail form

  1. #11
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Quote Originally Posted by volkantr19 View Post
    When i submit this form,i am getting no errors on screen...
    Try commenting out/removing this line and see if you get any screen errors then;
    Code:
    error_reporting(0);
    And what about your server logs? These won't be visible on the screen - they are something different. Check your server error logs for clues about script fails.
    The error messages found there might offer more insight into the problem.

    Have you also tried asking your web host for a small sample test script? Lots of web host FAQs/help guides provide a very basic script to demo email sending.
    Last edited by Beverleyh; 03-19-2016 at 12:35 PM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  2. #12
    Join Date
    Sep 2013
    Location
    Antalya - Turkey
    Posts
    37
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    Finally,i get the message from contact page...I tried everthing during day but i still don't know that how it is fix up...
    Last problem is 'success message alert'...
    After true or false filling form element,the form doesnt show up success message...

    Please check orginal website here: http://html.creaws.com/kiddy/contact-us.html
    And my website here: http://bbb.antalyabalikcilik.com.tr/contact-us.html

    Which code must be change ?

  3. #13
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Can you confirm if email is now being sent?

    If you are NOT receiving a success message because email is NOT being sent, please check your error logs!!! I've given you this advice three times now and you keep avoiding/ignoring it.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. The Following User Says Thank You to Beverleyh For This Useful Post:

    volkantr19 (03-20-2016)

  5. #14
    Join Date
    Sep 2013
    Location
    Antalya - Turkey
    Posts
    37
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    Yes i'm sure...I receive email but form doesn't show up success message...
    I can confirm it...Please send me an email on contact page...

    http://bbb.antalyabalikcilik.com.tr/contact-us.html

  6. #15
    Join Date
    Jan 2015
    Posts
    78
    Thanks
    0
    Thanked 19 Times in 19 Posts

    Default

    I've got to ask why are you doing this task? If it's for leaning, you need to start off with small projects that you can write, test, and debug yourself. If it's for a real project, you need to have a lot more programming and debugging experience before you can do this.

    The URL that the jquery .post() method submits to has now been changed to just "'php" in your code. It previously was "php/contacts-process.php". This results in a 403 forbidden error for that part of the javascript code since that's just the name of a folder and you cannot make a request to it without a default document set up. Since this request isn't valid, there is no expected response for the javascript code to use.

    Your code is also using a jquery form plugin to submit the form data in this line - var $form = jQuery(form).ajaxSubmit();. This is the line that's actually submitting the form data to the email.php code, but there's no code associated with this to handle the response.

    You need to pick just one set of javascrpt code to implement this with.

  7. #16
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    ... or just do it the easy way with Jotform or FoxyForm!

  8. The Following 2 Users Say Thank You to styxlawyer For This Useful Post:

    mlegg (03-21-2016),volkantr19 (03-21-2016)

  9. #17
    Join Date
    Sep 2013
    Location
    Antalya - Turkey
    Posts
    37
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by DyDr View Post
    I've got to ask why are you doing this task? If it's for leaning, you need to start off with small projects that you can write, test, and debug yourself. If it's for a real project, you need to have a lot more programming and debugging experience before you can do this.

    The URL that the jquery .post() method submits to has now been changed to just "'php" in your code. It previously was "php/contacts-process.php". This results in a 403 forbidden error for that part of the javascript code since that's just the name of a folder and you cannot make a request to it without a default document set up. Since this request isn't valid, there is no expected response for the javascript code to use.

    Your code is also using a jquery form plugin to submit the form data in this line - var $form = jQuery(form).ajaxSubmit();. This is the line that's actually submitting the form data to the email.php code, but there's no code associated with this to handle the response.

    You need to pick just one set of javascrpt code to implement this with.
    It's for learning...I am a student...I just requested for your help...If i dont ask to somebody,i cant learn something...
    I cant do real project because of i am not professional like you...
    Thank you so much for your advise...

Similar Threads

  1. Replies: 1
    Last Post: 06-26-2015, 12:16 PM
  2. Send Mail Using SMTP
    By cristopher in forum PHP
    Replies: 0
    Last Post: 01-31-2013, 10:54 AM
  3. Replies: 1
    Last Post: 03-24-2010, 06:25 PM
  4. Replies: 1
    Last Post: 09-17-2009, 10:00 PM
  5. Mail Form help with <form > and onSubmit
    By Traveler in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-14-2007, 05:30 PM

Bookmarks

Posting Permissions

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