From:             Austin519 at aol dot com
Operating system: Windows XP SP1
PHP version:      5.0.0
PHP Bug Type:     Mail related
Bug description:  Cannot properly send mail via SMTP from PHP 5, but can from previous 
versions

Description:
------------
I am currently running PHP5 with Apache 2.0.49 and an open-source shopping
cart solution OsCommerce (www.oscommerce.com).  The OsCommerce email
function is a standard one (I won't paste here) that sends standard or
MIME emails depending on what you choose for it to send.  Running PHP
4.3.1 I had no issues sending email, however after successfully upgrading
to PHP5, I now receive an error.

As I said, the email function is nothing deviating from most of the
general working functions posted on the web.  My php.ini lines that it
would be referring to are below (edited out my domain name):

[mail function]
; For Win32 only.
SMTP = mail.mydomain.com
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

Reproduce code:
---------------
The specific line the error below refers to is here:
return mail($to_addr, $subject, $this->output, 'From: ' . $from .
$this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers)
. $this->lf . implode($this->lf, $xtra_headers));

The entire email function is here:
http://www.modsp.com/email.php.txt

Expected result:
----------------
Emails are processed and sent to recipients.

Actual result:
--------------
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
custom "From:" header missing in \path_to_storefront\email.php on line
500

(edited out full path to storefront)

-- 
Edit bug report at http://bugs.php.net/?id=29276&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29276&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29276&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29276&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29276&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29276&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29276&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29276&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29276&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29276&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29276&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29276&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29276&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29276&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29276&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29276&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29276&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29276&r=float

Reply via email to