|
Posted by Jerry Stuckle on 05/03/07 13:20
cybervigilante wrote:
> On May 2, 3:44 pm, shimmyshack <matt.fa...@gmail.com> wrote:
>> On May 2, 11:22 pm, cybervigilante <cybervigila...@gmail.com> wrote:
>>
>>> I can't seem to change the include path on my local winmachine no
>>> matter what I do.
>> if you are running php as an apache module then you need to modify the
>> php.ini that is in the apache/bin directory,
>
> Okay, I did that. Good idea - wish I'd thought of it.;')
> Unfortunately, my prog is still choking on a Pear. Error message is:
>
> Warning: include(Mail.php) [function.include]: failed to open stream:
> No such file or directory in C:\wamp\www\test\test.php on line 13
> Warning: include() [function.include]: Failed opening 'Mail.php' for
> inclusion (include_path='.;C:\wamp\php\PEAR') in C:\wamp\www\test
> \test.php on line 13
> Warning: include(Mail\mime.php) [function.include]: failed to open
> stream: No such file or directory in C:\wamp\www\test\test.php on line
> 14
> Warning: include() [function.include]: Failed opening 'Mail\mime.php'
> for inclusion (include_path='.;C:\wamp\php\PEAR') in C:\wamp\www\test
> \test.php on line 14
> Fatal error: Class 'Mail_mime' not found in C:\wamp\www\test\test.php
> on line 25
>
> Here is my php.ini path for the php.ini in both php and sql dirs:
> include_path = ".;C:\wamp\php\PEAR"
>
> Here is the actual winpath to the pear directory: C:\wamp\php\PEAR
>
> No difference. I'm stumped. Below is the test prog using Pear email,
> which did work on the remote linux server and sent me some mail
> wihtout the error msgs. Although my gmail acct picked the mail up as
> an attachment instead of as html - but gmail is really wierd about
> html email. I still haven't figured out what they accept, even though
> I get a lot of html email from them, so something must work ;')
> Frankly, I may abandon html email as a nuisance, but I need to test
> pear with something to see if it works on my home system. If someone
> has a simple illustrative test script using pear, that would help
> since I can't send email from my home system anyway.
>
> Oh, one other thing puzzled me about the prog below. I saw the html
> message, which should be invisible, since it's inside a php code
> block. Could be a php error,which brings up another point. I don't see
> php errors online, like I do off. How do I make them display online
> since that's the only place I have pear working so far, and I need to
> see errors.
>
> Just checked Yahoo mail, and the css formatted html came out fine.
> Gmail making it an attachment must be a gmail bug, although I'd like
> to know how I am getting html email from gmail, then ;')
>
> Also, although the mail arrived, some echo statements I put in here
> and there for a simpl trace (since deleted) didn't show up.
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html lang="en">
> <head>
> <title>PHP Guestbook</title>
> </head>
> <body>
>
> <h1>mailtest</h1>
>
> <?php
>
> include('Mail.php');
> include('Mail\mime.php');
>
>
> $HTMLmsg = "<h2 style='color:red; background-color: Fuchsia; border:
> thick
> dotted; border-color: Blue; font-family: sans-serif; font-style:
> italic; margin-left: 20%; padding: 20; margin-right: 30%;'>Test of
> formatted email from <br>Just Health Now server, with html headers</
> h2>";
>
> $txtmsg = "Test of formatted email for Just Health Now server,
> without html headers";
>
> $message = new Mail_mime();
>
> $message->setHTMLBody($HTMLmsg);
> $message->setTXTBody($txtmsg);
>
> $body = $message->get();
> echo("after body = message get");
> $extraheaders = array("From"=>"cybervigilante@gmail.com",
> "Subject"=>"Test of HTML email");
> $headers = $message->headers($extraheaders);
> $mail = Mail::factory("mail");
>
>
> $mail->send("cybervigilante@gmail.com", $headers, $body);
>
> ?>
>
> </body>
> </html>
>
>
>
>
>
>
>
What does phpinfo() show for your php.ini file?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|