Chemical Inventory - CHEMOVENTORY
    FAQ    Feed-back     Forum    Updates    Survey    Terms    About us   
Home   |   Demo   |   Download   |   Register   |   Purchase   |   Documentation   |   Barcode Help
 
CHEMOVENTORY FORUM 
Sending email error (the test_email.pho script didn't work!) (From c112.tr13.kmu.edu.tw on 21-Apr-2010)
Hi, all my test installation of Chemoventory went fine except the emailing function. When executing the test_email.pho script, there was alsway an error message (listed below) when I entered and sent an valid email address on the page. Any help is greatly appreciated, thanks.

(error message)
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\AppServ\www\chemoventory\include\send_email.inc.php on line 3

p.s.
I've already modified my php.ini (located in c:\windows) with the following as instructed:

[mail function]
; For Win32 only.
SMTP = "IP of my email server"
port = 25

; For Win32 only.
sendmail_from = admin@chemoventory

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
(From c112.tr13.kmu.edu.tw on 21-Apr-2010)
Forgot to mention that I was installing Chemoventory on my local PC running Windows 7 (32-bit). Thanks. :-)

(From adsl-71-131-191-160.dsl.sntc01.pacbell.net on 21-Apr-2010)
Hi,

Regarding email problem, did you able to make
changes on php.ini on smtp and sendmail_from?

Check the port on which your smtp works. The
default is 25. You can check your smtp port from
your desktop email software such as outlook
(properties).

In some email server they might have blocked SMTP
access. In that case, you may need to
install/follow the pear method instructed in
include/send_email.inc.php

Ulag

(From c112.tr13.kmu.edu.tw on 21-Apr-2010)
Hi, Ulag:

Thanks for your reply. Yes, I had made changes in my php.ini (at c:\windows) with correct smtp, port, and sendmail_from settings. But it still didn't work.

I had installed the Appserv-win32-2.5.9 package and placed Chemoventory under its \www directory. For the 2nd option you suggested, I installed the Pear package from c:\appserv\php5\pear by running the php go-pear.phar command from the DOS command line. Since I had no idea as whether to choose the local or system installation, I simply went by the defaul (system) installation.

After the installation was completed, the Pear version info I got was:

INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE VERSION STATE
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.2 stable
PEAR 1.5.4 stable
Structures_Graph 1.0.2 stable

After the installation, I went into the c:\appserv\www\chemoventory\include\send_email.inc.php and made the following changes:
1. Remove the commenting symbols at lines 33, 54.
2. Enter correct info into lines 38, 44, 45, 47, 48.
3. Change 'false' to 'true' in line 46.

With all these done, however, when I tried running the test_email.pho script, it gave me the following error messages:

--
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\AppServ\www\chemoventory\include\send_email.inc.php on line 3

Warning: include(c:/php/pear/pear/Mail.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\chemoventory\include\send_email.inc.php on line 34

Warning: include() [function.include]: Failed opening 'c:/php/pear/pear/Mail.php' for inclusion (include_path='.;C:\php5\pear') in C:\AppServ\www\chemoventory\include\send_email.inc.php on line 34

Fatal error: Class 'Mail' not found in C:\AppServ\www\chemoventory\include\send_email.inc.php on line 51
--

Then, I went back to check inside the Pear directory, but there was nowhere I could find any Mail.php (or anything similar to it) file. What could I try next, then? Many thanks again!! :-)


My Suggestion to this Problem


This page was last modified on Mon, 25 May 2009 01:08:36 -0400