Jump to content

randyvogl

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

randyvogl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the replies thus far... sorry I didn't realize that I put in the ini_set that has since been taken out... my issue seems to be with the < in the header var? Is this an illegal operation? Is there a way around the issue?
  2. So here is the premise of the issue I have two places on my website where I am attempting to automatically send emails if a form is submitted using the mail() function. The first is a registration page, this works great email completes successfully and everyone is happy. The second location is the problem, it is being stopped by exchange IMF I believe it is this line that is causing the error when I print this line $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields it displays the following results "From: Do Not Reply" and missed the whole right half which has the send from: which I believe is flagging it in IMF but I can't figure out what is wrong with this syntax? Any thoughts? Ohh and this is the exact same code that is used on the other outbound email that works correctly which adds to my confusion. //this is a section of code to send the user an email confirmation with their username and password attached $Name = "Do Not Reply"; //senders name $email = "donotreply@xxxxxxxx.com"; //senders e-mail address $recipient = $_POST['email']; //recipient $mail_body = "Your file has been uploaded"; //mail body $subject = "Upload"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields ini_set('Do not reply', 'donotreply@xxxxxxxx.com'); //Suggested by mail($recipient, $subject, $mail_body, $header); //mail command
  3. So here is the premise of the issue I have two places on my website where I am attempting to automatically send emails if a form is submitted using the mail() function. The first is a registration page, this works great email completes successfully and everyone is happy. The second location is the problem, it is being stopped by exchange IMF I believe it is this line that is causing the error when I print this line $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields it displays the following results "From: Do Not Reply" and missed the whole right half which has the send from: which I believe is flagging it in IMF but I can't figure out what is wrong with this syntax? Any thoughts? Ohh and this is the exact same code that is used on the other outbound email that works correctly which adds to my confusion. //this is a section of code to send the user an email confirmation with their username and password attached $Name = "Do Not Reply"; //senders name $email = "donotreply@xxxxxxxx.com"; //senders e-mail address $recipient = $_POST['email']; //recipient $mail_body = "Your file has been uploaded"; //mail body $subject = "Upload"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields ini_set('Do not reply', 'donotreply@xxxxxxxx.com'); //Suggested by mail($recipient, $subject, $mail_body, $header); //mail command
  4. k, so I got this fixed and I don't know how it happened but the ext directory had the "everyone" profile did not have read & execute permissions after I figured this out it instantly fixed the issue. Thanks for everyone's help and hopefully no one else does any this dumb. That drove me crazy, this was day two trying to solve this issue.
  5. So I am continuing to work on this and best I can figure out so far it is a permissions issue with the ext directory or the php directory... any thoughts
  6. So I just wanted to start by saying that I have read everything I can find on this issue on this forum and several others, so please read through this. I really need your help. I have installed PHP5 and Mysql on IIS 6.0, php is working great no issues there. MySQL by its self is also working well via MySQL Administrator, but the two are not connecting. if I run phpinfo() it does not show MySQL I have: Verified that environmental path for MySQL is set to C:\Program Files\MySQL\MySQL Server 5.0\bin; Verified that php.ini is being read correctly (it is located in C:\windows) verified that php ext is set to the location of php_mysql.dll and php_mysqli.dll and confirmed both files are there. (C:\PHP\ext) Confirmed that libmysql.dll is located in C:\PHP, I also placed in C:\windows and C:\windows\system32\ (I am trying anything at this point) confirmed environment path C:\Program Files\MySQL\MySQL Server 5.0\bin; removed ";" from extension=php_mysql.dll removed ";" from extension=php_mysqli.dll confirmed that gave iusr read and execute permissions to the ext directory (don't think this has to be done but I am desperate) Restarted IIS after php.ini changes via cmd iisreset Tested MySQL connection via code below and got results listed below <?php ini_set('display_errors', 'on'); error_reporting(E_ALL); mysql_connect(); ?> returns: Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\test.php on line 4 MySQL installation directory is C:\Program Files\MySQL\MySQL Server 5.0 Default port 3306 MySQL service is running as well under services.msc I can't think of anything else that I have tried so far. If you have any insight that would be awesome. Thanks ahead of time and just in case it is important this is a isapi installation of php
×
×
  • 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.