Re: Mail Function Problem
| From: | Karl DeSaulniers | Date: | Tue, 13 Apr 2010 03:31:18 +0000 |
| Subject: | Re: Mail Function Problem | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304021@lists.php.net to get a copy of this message | ||
Hey Alice,
Try throwing the MIME in. Sometimes messages get thrown in an abyss if they don't know the MIME version or content type of an email.
They think its spam and so you wouldn't get an error message on your end. Just no email.
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
Karl
On Apr 12, 2010, at 10:24 PM, Alice Wei wrote:
From: kranthi117@gmail.com Date: Tue, 13 Apr 2010 07:41:19 +0530 Subject: Re: [PHP] Mail Function Problem To: ajwei@alumni.iu.edu CC: kdk@daleco.biz; php-general@lists.php.net thats weired... Mail.php contains the class Mail. So getting a "class not found" error is not possible... (require_once stops the script in case it can't find Mail.php)I thought so too, this is what I have in my php.ini: ; PHP's default setting for include_path is ".;/path/to/php/pear" ; http://php.net/include-path include_path = ".;C:\xampp\php\PEAR" This is the contents of my C:\xampp\php\PEAR\Mail: mail.php mime.php mimeDecode.php mimePart.php null.php RFC822.php sendmail.php smtp.php Unless, I have to do require_once("mail.php")? I am getting confused. Alice _________________________________________________________________ Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2 Karl DeSaulniers Design Drumm http://designdrumm.comensure that C:/xampp/php/PEAR folder is added to your include listDo I need to move the Mail PEAR class to the same folder as my web folder