Jump to content

bloodl

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bloodl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi My 3 month issues is that so far I have not gotten any php mail forms to work on our server. We think we have tried everything, but we must be wrong. Are there any scripts around that I can run on the server that will just simply test if our mail works ? A script that doesn't need to be linked to external or local files ? If anyone knows of any, that would be GREAT! I just can't figure out where the break is. When the form is filled in and completed, it never stops saying "waiting for www.mywebsite.com..." and I have never seen any error messages. Is that a clue? I am using $_POST and not $HTTP_POST_VARS, and we think we have set up the server SMPT settings correctly. The vars are coming from flash which has worked on other servers with the same php script! I am totally confused, and frightened If anyone knows about any scripts that can test if our server is configured correctly, please show some love this way. Cheers, Doug
  2. Hi, I am trying to get my clients email up and working. It sends the vars from flash, and I never hear a peep out of the php. No errors, and no emails ! The vars are correct on both sides, and apparently this form works on other sites. my php.ini is set up: [mail function] ; For Win32 only. SMTP = mail.mydomain.com smtp_port = 25 ; For Win32 only. sendmail_from = theboss@myworkplace.com If anyone can see the dodge within this code, can you plez help me out? <? $adminaddress = "milk@visuality.com.au"; $siteaddress ="www.visuality.com.au"; $sitename = "Visuality"; //Gets the date and time from your server //$date = date("m/d/Y H:i:s"); // Gets the IP Address if ($REMOTE_ADDR == "") $ip = "no ip"; else $ip = getHostByAddr($REMOTE_ADDR); // Gets the POST Headers - the Flash variables $action = $_POST['action'] ; $firstname = $_POST['firstname'] ; $lastname = $_POST['lastname'] ; $email = $_POST['email'] ; $phone = $_POST['phone'] ; $time = $_POST['time'] ; $how = $_POST['how'] ; $promo = $_POST['promo'] ; //Process the form data! // and send the information collected in the Flash form to Your nominated email address if ($action == "send") { // mail ("$adminaddress","Website Contact", "A visitor at $sitename has left the following information\n ------------------------------ First Name: $firstname Last Name: $lastname Time: $time Phone: $phone Email: $email Promo: $promo How: $how Logged Info : ------------------------------ Using: $HTTP_USER_AGENT Hostname: $ip IP address: $REMOTE_ADDR Date/Time: $date","FROM:$adminaddress" ) ; //This sends a confirmation to your visitor mail ("$email","Thank You for visiting $sitename", "Hi $firstname, Thank you for your interest in $sitename! We will get back to you as soon as possible. Cheers, $sitename ------------------------------ Phone: (02) 1234567899 $siteaddress","FROM:$adminaddress") ; //Confirmation is sent back to the Flash form that the process is complete $sendresult = "Thank you."; $send_answer = "answer="; $send_answer .= rawurlencode($sendresult); echo $send_answer; } // ?> Cheers, Doug
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.