php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10859 WIll Not send E-Mail
Submitted: 2001-05-14 15:54 UTC Modified: 2001-05-14 22:13 UTC
From: info at vortechhosting dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.0.5 OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2001-05-14 15:54 UTC] info at vortechhosting dot com
Here is our php.ini file
[mail function]
SMTP			=	freebsd1.vortechhosting.com			;for win32 only
sendmail_from	=	postmaster@vortechhosting.com	;for win32 only
;sendmail_path	=						;for unix only, may supply arguments as well (default is 'sendmail -t -i')


This mail server relays mail for all our IP 198.172.189.* but will not work with PHP. Gives a error every time.

This is where it sys the error is.
$headers .= "From: $order_email\n";
$headers .= "Return-Path: <$order_email>\n";  // Return path for errors

mail($email, $subject, $email_body . $message . $message_secure . $message2 . $message3, $headers);
mail($order_email, $subject, $message . $message_admin . $message2, $headers);
}

But this works fine on our freebsd boxes. But we need to get PHP working on windows. Any help on why Mail in PHP will not work any windows 2000 server would be great. this is the only thing in PHO that will now work for us.


Please let me know so i could get his fixed.

Brad
E-Mail: info@vortechhosting.com

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-14 20:40 UTC] sniper@php.net
And what might that error be you're getting?
Your example script isn't complete. Do you happen to
have \n's in the end of $email or $subject ?

--Jani

 [2001-05-14 21:32 UTC] info at vortechhosting dot com
Got it fixed. As far as i knew php used C:\winnt\system\php.ini or C:\winnt\system32\php.ini but was using C:\winnt\php.ini once i copyed the one i edited it woked fine. This should be easier to find out witchone it is useing as this took some time to fix. Never could find any where that said this is what you need to do to make it work.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC