Jump to content

tbailey

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tbailey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, Have brought this issue here before, but dropped it.... time to pick it up again. I have Win2003 webserver. PHP. IIS6. I have some forms that use PHP mail(). My php.ini is correctly configured to point to my SMTP server (another box). However, it for some reason DOES NOT WORK! No emails are generated from the forms. The scripts in the forms are CORRECT. Please do bother replying if you're going to tell me to check my coding on the scripts, as this is NOT the problem (they have been tested on numerous other machines and looked at by contract programmers). Is there anything else I need to do? Have I missed something with my system config? I have also tried configuring php.ini to point to localhost (I set up the smtp service in IIS to test this) but to no avail. I changed php.ini back to the smtp server we use in our org. Thanks in advance. I know it should be simple, but the solution doesn't seem to be presenting itself. [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]
  2. I have tried 2 different configuration options for php.ini in my attempt to get this working. However, NEITHER option seems to be working as the local smtp service is generating no logs when my test form is run. My 2 different php.ini configuration attempts had the SMTP value set as 1. smtp.mycompany.com and 2. localhost . Neither works. My thinking was that either the local service would pick up on the call to the smtp.mycompany.com server and forward it there (in the case of 1.) or the local service would send the mail directly to the recipient (in the case of 2.) My hunch is that there's something wrong with my php config as it's not even talking to the local service. i wish i was smart.
  3. Hi, know I'm probably dumb beyond all belief but.... After modifying php.ini, how do I get php to refresh and use the new settings without restarting my webserver? When I look at phpinfo it continues to show the old data for some time. Thanks!
  4. Ok. So did some more tests submitting my form. Nothing. However, I checked on the local smtp logs, and there is no logfile there....even though I have logging enabled. Might this mean that the local smtp is never being contacted by the form?? My php.ini file looks as follows (relevant lines): sendmail_from no value no value sendmail_path no value no value SMTP localhost localhost smtp_port 25 25 The smtp is set to allow anon access from the local IP address. And yes neylitalo, the servers are both on registered domain. Also, I am only attempting to send internal emails at present. Thanks so much.
  5. Please help me :-) I'm running a webserver: Win2003 w-IIS 6 We have a separate Windows box for email. An SMTP server. I'd like to use the PHP mail() function to send email messages from webpages (as in submitting forms), but this PHP mail function does nothing. I cannot get the webserver to send mail. The PHP mail functions are coded properly. Originally I had php.ini pointing to my smtp server (other box), and when this did not work, I set up in IIS an SMTP virtual server on my webserver, and then had this point to my real smtp server. I changed php.ini to point then to localhost for smtp. Still no luck. Am I missing something? I have PHP installed. For mail it points to localhost. Localhost sends it to SMTP virtual on local machine, which sends it to real SMTP server on other box, which delivers it to mailbox. What am I missing?? Thanks soo much.
  6. Please, can anyone help with this? Thanks!
  7. Like I said.... I'm dubious placing the code on the site.... I've tried several files (some of which have been tested on other systems and work perfectly). Please....the coding IS NOT the problem. The issue is somewhere in my flow / configuration. Is there something that should be specified in IIS that would effect this? On the SMTP server that the mail function sends to, is there some parameters that need to be set to accept the email that originates from mail() ?
  8. k. Here's a sample form: <form action="tbaileyprocess.php" method="post"> Name: <input type="text" name="name" size="20" maxlength="20" /><br /> Email: <input type="text" name="email" size="30" maxlength="30" /><br /> Subject: <input type="text" name="subject" size="30" maxlength="30" /><br /> Text:<textarea name="text" name="text" cols="50" rows="10"></textarea><br /> <input type="submit" name="submit" value="Send" /> </form> --------------------------------------- the FILE: tbaileyprocess.php: --------------------------------------- <?php @extract($_POST); $name = stripslashes($name); $email = stripslashes($email); $subject = stripslashes($subject); $text = stripslashes($text); mail('myemail@myemail.com',$subject,$text,"From: $name <$email>"); header("location:tbaileyform.php"); ?> Like I said, I'm sure that this coding is fine. But am thinking that I'm missing something in my system. Nagging in the back of my mind is how does my smtp server authenticate this mail being sent? All I have pointing to the server is the SMTP setting in php.ini ??? Thanks! :-)
  9. Have tried calling it from several files. I'm confident that the coding is not the problem, but rather something I'm missing in my system config. Forgot to mention that the webserver is running IIS 6 also. Do I need to set up a SMTP (local) virtual server in IIS?
  10. Hi, I'm trying to use the php mail() function. I'm using PHP 4.3.10 on Win2K3 server. My SMTP is correctly pointing to my smtp server (a different box), however I'm getting nada when trying to send mail. Please help :-) Thanks soo much in advance. t
×
×
  • 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.