facebook

Help! PHP form to Mail not working!

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #337413 Reply

    Peacemaker
    Member

    I have tried so many different strategies to get the php mail to work (http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=1233&hilit=Mail&start=30)

    I have uploaded it to a free php hosting biz.nf, uploaded the send php file and all files, compiled the contact form in mobi, altered the custom code so it points to the send.php URL which the send.php file is on. Gives me confirmation but doesn’t send anything. Tried everything nothing works! Please help.

    #337414

    Brandon
    Member

    I have a sample in my cheatsheet that has worked for a couple people.
    http://cincyplanet.com/mobione/
    See the PHP send mail code
    It uses the form setting in mobione, which I have found the simplest for sending mail using php.
    I have also used various versions for much more advanced forms.

    #337444

    Peacemaker
    Member

    hey cincy it’s still not working

    1. I have created the php file from the code, edited the email to my hotmail email.
    2.uploaded the php file to http://www.betatestapp.co.nf/cincysender.php
    3.created form with three textboxes in mobi, email, subject, message
    3.made sure the screen type was form to url, put the url as http://www.betatestapp.co.nf/cincysender.php
    4.action type of form POST
    5.created a submit form button

    uploaded as webapp, no joy……

    help please do you think my server don’t support it?
    http://www.biz.nf/
    ——————————————————————

    if the above doesnt work my only alternative is to send email via iphone mail app, but without being to use a confirmation screen after sending it… it is useless, in terms of user friendliness

    #337447

    Brandon
    Member

    By clicking on the php link I can see that it is returning a value, Invalid Email, so the problem is with your form most likely. Make sure the name of the text fields match exactly the ones in the php file. If you sting in php is email the text field for it must be email, I believe it is case sensitive.

    #337454

    Peacemaker
    Member

    @CincyPlanet wrote:

    By clicking on the php link I can see that it is returning a value, Invalid Email, so the problem is with your form most likely. Make sure the name of the text fields match exactly the ones in the php file. If you sting in php is email the text field for it must be email, I believe it is case sensitive.

    Have a look at a screen pic of all the forms, can you see where i might be going wrong?

    there is even a pic of the php file….

    your help is so much appreciated…

    Attachments:
    You must be logged in to view attached files.
    #337456

    Brandon
    Member

    From what I can see it looks fine.

    Another thing you can do is in your custom js file find the postSubmit function of your form. You will see a isSuccess statement place this alert in both spots:

    alert(data);

    This should tell you any problem it is having, or if it is successfully doing it.

    #337459

    Brandon
    Member

    There is a problem in the php after the check email function it is returning an error, but if I dont fill out the email it returns a Invalid Email. My suggestions is to take out all the email check and see if that works. You can always to basic email checking in javascript before sending the form if needed.

    #337461

    Peacemaker
    Member

    @Peacemaker wrote:

    I have tried so many different strategies to get the php mail to work (http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=1233&hilit=Mail&start=30)

    I have uploaded it to a free php hosting biz.nf, uploaded the send php file and all files, compiled the contact form in mobi, altered the custom code so it points to the send.php URL which the send.php file is on. Gives me confirmation but doesn’t send anything. Tried everything nothing works! Please help.

    Ok the above php mail sender & contact form is getting very close, there is a Ajax return get, which has a an error catcher and its coming back as error unable to send mail try another time?

    I’m beginning to suspect my host biz, do you have a working demo of the php mail? in a server…. And can you also recommend a free host that has php server?

    #337463

    Brandon
    Member

    Try pointing to this form:

    cincyplanet dot com / mobione / peacemaker.php

    and see if you get an email, I used the email in the screen shot.

    #337473

    Peacemaker
    Member

    Thank you so much cincy your next drink its on me, I got the email.

    Was I right with suspecting my php host server?, can you also send me the php file you posted just want to examine the code and make amendments by adding fields etc.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Help! PHP form to Mail not working!

You must be logged in to post in the forum log in