zhuguoxi / php-mime-mail-parser

Automatically exported from code.google.com/p/php-mime-mail-parser
0 stars 0 forks source link

Bounce back error keeps coming back #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I keep getting the same error on the bounce back e-mail:

The following text was generated during the delivery attempt:

<br />
<b>Warning</b>:  Supplied argument is not a valid resource handle in 
<b>/home3/evpmpt/public_html/si/_mailingList/MimeMailParser.class.php</b> on 
line <b>82</b><br />
<br />
<b>Fatal error</b>:  Call to undefined function  mailparse_msg_create() in 
<b>/home3/evpmpt/public_html/si/_mailingList/MimeMailParser.class.php</b> on 
line <b>99</b><br />

----/----

I have php mailparse extension enable. What should I do?

Original issue reported on code.google.com by miguelhe...@gmail.com on 2 Oct 2010 at 10:01

GoogleCodeExporter commented 9 years ago
If you executing from the command line, then you should supply the PHP.ini path.

Example:

php -c /path/to/php.ini -f /path/to/mailparser.php

The example executes /path/to/mailparser.php with the configuration in 
/path/to/php.ini.

Original comment by buca...@gmail.com on 2 Oct 2010 at 8:59

GoogleCodeExporter commented 9 years ago
thank your for your help.

I'm sorry if my question seems a bit dumb, but the command line you are 
referring to is the command line where I write the path to the program I pipe 
the e-mail to?

I've tried doing that but id doesn't seems to work . The path I am using now is:
|/usr/bin/php -q /home3/siteName/public_html/si/_mailingList/mail.php

Original comment by miguelhe...@gmail.com on 3 Oct 2010 at 9:35

GoogleCodeExporter commented 9 years ago
Not dumb at all. Yes, in this case it would be where you write the path to the 
program to pipe the email to. 

You have to find out where your PHP.ini file is, and add that to your command. 

eg: 

| /usr/bin/php -q -c /path/to/php.ini 
/home3/siteName/public_html/si/_mailingList/mail.php

Of course "/path/to/php.ini" is just an example. You have to replace it with 
the actual location of php.ini. Without the configuration file, PHP will not 
load the mailparse extension. 

Original comment by buca...@gmail.com on 3 Oct 2010 at 7:02