Jump to content

HTF

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

HTF's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. HTF

    PHP mail function

    Hi, I've test it with IIS mail server and everything works fine but with hmailserver is not so is there a problem with authentication is so is it possible to enable it in php mail function?
  2. Hi, Could you have a look what I'm doing wrong as php mail function is not working: Error: I would like to use my gmail account so I've set joomla admin panel as below:
  3. Hello, Thank you for reply, I've just changed the php extension to generate an error for example. My goal is turn off any errors are displayed entirely for the security reason I've turned off display error in php.ini file: -but unfortunately I still see the errors? I also checked this code but it's not working: function errorHandling($message) { echo '<b>An error has occurred:</b><br><br><i>'; echo $message; echo '</i><br><br>Check your the settings in the db.php file and check your server is running correctly.<br>'; exit; } Can you help me with a code that will be redirecting to particular webpage if any error occur or at least shows some friendly message for the user
  4. Hello, Basically I have IP tool on my website that is showing visitors IP but I saw today that sometimes there is a slightly delay when the page is loading because of the website that provide the IP data, it's also displaying country flag ect. and I received php error about timing out (60 sec.) during loading the page so I would like to prevent from displaying this error or find some solution in situation when their website is slow what cause that my website is not loading. I've change 'the display_errors to off' in php.ini so I could prevent from displying any php errors but it's also not working. Your suggestion was great and I though that it will solve the problem but unfortunately not
  5. Hello, How can I hide php errors like this below for example when I'm accesing my website(I've just changed index file extensions for this example purpose but I had such a errors before): Is it possible that instead of this the browser will be display some HTTP error like error 400 (Bad request) for example or somethomg like that, because in this case everybody see my directory structure ect. Regards
  6. Hello and good morning everyone, 1. Jump menu in Dreamweaver - I created simple exaplme to help you understand my issue http://wook.sytes.net - I've set jump menu in Dreamweaver with button so I could choose from drop down list a product and then, when apropiate product is selected, it should go to URL address (for exaplme payment website with paypal button), there is submit button which also should post a form to me with all the details from the form (in exaplme is just jump menu) all is fine when there is no action on the button but unfortunately, with action - submit form, I receive the form but it's not going to the URL from the jump menu. 2. List Menu in Dreamweaver - how to create list menu which would be apper according to the selection of the prevoius list menu - for exaplme if I select from the first list as a operating system windows on the next list should apper: XP, Vista, 7 and the if I select on the first list Linux on the next one should be Fedora, CentOS ect. 3. User account - is it possible to create some database in dreamweaver so users could register them self on my website and give them access to the folders on the server via FTP for web hosting, can I use Data options in dreamweaver to achive this? I was thinking give access to users via isolated FTP site but then users won't be able to change their passwords etc. Is some easy way to achive this or I need php to run this, I'm runing my server on Windows platform? 4. I'm looking for some php script for uploading files from the browser so I could easly set with my upload form on the website. Regards
  7. Thx for reply, Do you know how to solve it or maybe some ready script? - one more thing, I can set more than one emails as a recipients but do you know script that when people choose different department from the scroll down list in the form, an email will be sent acording of their choice Reg
  8. Hello, Welcome everybodey as I'm new on this forum. I have a few question regarding php code - form to email 1. I was testing a lot of php scripts and I have one that it's working now but unfortunately only with my domain email account but it's not with google acount or any other as I receive error: PHP Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for email@google.com in C:..... - this is big problem for me as I would like to use my gemail account How can I solve this? 2. How to prevent users from refreshing the form after it has been sent so I wouldn't receive more that one emails, I placed something like this in the php code: $stopRefresh = true; - but it didn't help 3. How to set image veryfication, is it a lot of work? The whole code is belowe and one more questions how it's work as I had to add all form fields IDs to all scripts that I tested before but this one picks up any form... <?php error_reporting(E_ALL ^ E_NOTICE); $my_email = "email"; $from_email = "email"; $continue = "/"; $errors = array(); // Remove $_COOKIE elements from $_REQUEST. if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}} // Display any errors and exit if errors exist. if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;} if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");} // Build message. function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");} $message = build_message($_REQUEST); $message = stripslashes($message); $subject = "Dark space Quary..."; $subject = stripslashes($subject); if($from_email) { $headers = "From: " . $from_email; $headers .= PHP_EOL; $headers .= "Reply-To: " . $_REQUEST['email']; } else { $from_name = ""; if(isset($_REQUEST['name']) && !empty($_REQUEST['name'])){$from_name = stripslashes($_REQUEST['name']);} $headers = "From: {$from_name} <{$_REQUEST['email']}>"; } mail($my_email,$subject,$message,$headers); $stopRefresh = true; //false; //true; ?> <html> <head> <title>Homepage</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; color: #666666; text-decoration: none; } --> </style> </head> <div> <div align="left">Thank you for your interest! Your email will be answered very soon!</div> </div> </body> </html> thanks for any help in advance. Reg
×
×
  • 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.