+ Reply to Thread
Results 1 to 28 of 28

Thread: Php Email problems
      
   

  1. #1
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Php Email problems

    Hello there, this is my first post!
    My website is: Holleyjohnson.net but currently in transfer process. So its http://70.86.241.194/~cncmmdly/. The form in question is: http://70.86.241.194/~cncmmdly/contact.html Its a basic registration form. Ask for name and email address.

    Php file: http://70.86.241.194/~cncmmdly/contact.php

    I have it getting the info but for some reason its not emailing the results. Am I missing something?

    both files are in the same directory... I am also noticing that the comment: Thank you for visiting our site and ..... is not posting as an output. I am looking for some help.

    Thanks,
    Stratis
    logid: cncmmdly

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Php Email problems

    Well-
    Is this currently on a Voda Host server? I should not be able to see the php script- but I can. That is not supposed to be.

    Andy
    PHP- is a blast!

  3. #3
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Yeah.. the the temporary URL that I have been given by Voda:

    http://70.86.241.194/~cncmmdly/

    Should this be ok after the transfer onto Voda?

    Stratis

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: Php Email problems

    Stratis,
    I suggest that you open a support ticket. I suspect something is not set correctly on your account as I can see the php code by viewing the source code of the php page- and you shouldnt be able to.

    Or- where exactly did you place the php code? Did you place it "inside the body tags"? Make sure that you placed the php code properly. What instructions did you follow setting up the php script?

    Andy
    PHP- is a blast!

  5. #5
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    I just set a simple notepad. Started with open php and close php.. no <html> tags. I will see with the tags..if it makes a difference.

    Stratis

  6. #6
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Here is the current code: <now>

    <HTML>
    <HEAD>
    <TITLE>Succesfully processed your order</TITLE>
    </HEAD>
    <BODY>
    <H2>Thanks for your order!</H2>
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = conjunkbox********.com;
    $mailsubj = "test script for php";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $val\n";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    </BODY>
    </HTML>


    I am still getting no email with the php script. I do get an output..stating thanks for posting.....
    Also, If I do the mailto option from the form..I do get an email from the forum, but the output needs to be cleaned up. Ideas?

    Thanks,
    Stratis

  7. #7
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Interesting.. I see that the script must have worked. I recieved an email from: navalde@XXXXX.com ( didn't post full email..incase user didn't want me too)

    Now, how was it that it didn't work when I tried it.

    Stratis

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    I tested it
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  9. #9
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    To be honest i re-produced your script page, and it was that that send the mail. However, don't try anymore. temporary URL (like yours) are PHP disabled, that's why it doesn't work.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  10. #10
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Interesting. And for a sec, I thought it was fixed.. bummer.

    Could this be not working properly since script is still on temp website that Voda gave me prior to transfer of my host domain? I am thinking, something like a guest account that doesn't run all the features?

    temp: http://70.86.241.194/~cncmmdly/

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    That's excactly what i posted above. Although it is not a question of transfer, but a question of account setting up
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  12. #12
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    guess both of us were posting at the same time.. Thanks for the help.

    I am currently waiting for my domain name transfer from Geocities.. oh joy. Once that happens.. this php will be fun. Thanks again.

    Stratis

  13. #13
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    Your name is Στρατης ?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  14. #14
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    I like the Greek. The Greeks call me Stratos ( I don't know the option for Greek Characters) short for Efstratios. English: Stratis

  15. #15
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    Ok, but you are not Greek, are you?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  16. #16
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Yeah I am. I am 1/2 Greek (Dad) and 1/2 Puerto Rican (Mom). Lived in the US most of my life.

  17. #17
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    Cool, we are having a clan here!
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  18. #18
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Clan, nice.

  19. #19
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    I am still having the same problem. My website has now been converted to Vodahost. I am able to run a php calander (download by cpanel). No problems. Calender @ (http://holleyjohnson.net/phpcal/week.php)

    I see the form output, but no email? Do I need to turn an option on for php? (no change from original post)

    Form: http://www.holleyjohnson.net/contact.html
    phpfile: http://www.holleyjohnson.net/contact.php


    Also, is there a tool I could use that checks to see if a script is working properly?

    Thanks,
    Stratis

  20. #20
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    No, your account is set up with php, you shouldn't need to do anything. Unfortunately php files are not visible to the browser, so i can't see what's in it. If you want, and if it is different from the one posted above, post it here. If it is as posted, it should work. It did in the page i created for you.

    There is no such tool: you simply try and see.

    However, it SEEMS to work. Check your email in the script.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  21. #21
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    thanks for the help again! I will have to recheck everything.

    Quick one. If I put echo commands within PHP do I need to post any other commands to have the echo commands to post on website? I am thinking of seeing if the variables are being posted -> for future work ofcourse <-

  22. #22
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    Yes, you can do that. I do it all the time for testing purposes. Click on my signature to see how you can create a preview page of your form with the info filled in, using the echo command.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  23. #23
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Thanks for the help. I have the email working now. And now have implemented similar scripts to other weblinks. Now, on to something bigger. Database??? :)

    Thanks again,
    Stratis

  24. #24
    Join Date
    Aug 2006
    Posts
    2

    Default Re: Php Email problems

    I just joined and I know nothing about php. However, I have gone through the tutorials and read some threads on php on this forum and I have decided to give it a try. I am still in the process of setting up my website.

  25. #25
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    There has been help throughout.. So feel free to ask questions whenever you need some help.

    This is a good tutorial if you have or haven't checked it out:
    http://www.vodahost.com/vodatalk/for...html#post56766

    Stratis

  26. #26
    Join Date
    Aug 2006
    Posts
    2

    Default Re: Php Email problems

    Thanks for the tutorial. I know it will take me all day to work through all this. When someone posted the mailto: may not work with those who do not have IE that concerned me. About 8% of my site viewers are not IE.

    PropertyPatrol TM
    Learn More Click Car

  27. #27
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    Default Re: Php Email problems

    Please note that the "mailto: ..." might not work, but it doesn't depend on them using IE or Firefox or other. It purely depends on their mail client settings, and THERE IS NO GUARANTEE that their settings are correct for the form functioning. So, your only 100% garantee option is to use the php script method for processing your form. Don't loose time with anything else.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  28. #28
    econstas's Avatar
    econstas is offline Second Lieutenant
    Join Date
    Jul 2006
    Location
    Durham, NC
    Posts
    105

    Default Re: Php Email problems

    Also what you face with mailto is the problem with having the user input info that you don't really need and sending it to you. With creating a form you can manipulate the information that you want the way you want.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49