> Date: Thu, 22 Apr 2010 00:31:04 +0100
> Subject: Re: [PHP] Mail Function Using PEAR Issues
> From: k...@linux.ie
> To: aj...@alumni.iu.edu
> CC: peter.e.l...@gmail.com; a...@ashleysheridan.co.uk; 
> php-general@lists.php.net
> 
> you have to install the net_smtp package, simply with this command:
> $ pear install net_smtp-1.4.2  (which will explicitly install version
> 1.4.2 of Net_SMTP)
> 
> If that doesn't work. for whatever reason, you could download the
> package manually from http://pear.php.net/package/Net_SMTP/download
> and install it by hand; though for reasons I've outlined in a previous
> post to this list I'd suggest you use the pear installer.
> 
> On Thu, Apr 22, 2010 at 12:12 AM, Alice Wei <aj...@alumni.iu.edu> wrote:
> >
> >> Date: Wed, 21 Apr 2010 22:01:03 +0200
> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >> To: aj...@alumni.iu.edu
> >> CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
> >>
> >> On 21 April 2010 21:58, Alice Wei <aj...@alumni.iu.edu> wrote:
> >> >> From: peter.e.l...@gmail.com
> >> >> Date: Wed, 21 Apr 2010 21:51:31 +0200
> >> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >> >> To: aj...@alumni.iu.edu
> >> >> CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
> >> >>
> >> >> On 21 April 2010 18:44, Alice Wei <aj...@alumni.iu.edu> wrote:
> >> >> > I have mentioned several posts earlier that I have done nothing about 
> >> >> > my
> >> >> > php.ini file. From what you said, since I use U-Verse, am I supposed 
> >> >> > to
> >> >> > do
> >> >> > something as described here:
> >> >> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
> >> >> >
> >> >> >
> >> >> >
> >> >> > I thought with PEAR, you don't need to do that anymore. Or, am I 
> >> >> > wrong?
> >> >> >
> >> >>
> >> >> Read the PEAR documentation:
> >> >> http://pear.php.net/manual/en/package.mail.mail.factory.php
> >> >> You can use other backends than just 'mail' - try using the smtp and
> >> >> fill in your smtp settings as needed.
> >> >>
> >> >> Regards
> >> >> Peter
> >> >>
> >> > I saw something like that on
> >> > http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm,
> >> > and this is probably what you are talking about?
> >> >
> >> >  $smtp = Mail::factory('smtp',
> >> >    array ('host' => $host,
> >> >      'auth' => true,
> >> >      'username' => $username,
> >> >      'password' => $password));
> >> >
> >> > Do I still need to install a mail server? I have Evolution Mail on my 
> >> > Linux
> >> > box, and looks like that is a client and not a server.
> >> > Or, can I use any of the mail smtp setup, like Google? Or, do use some
> >> > authentication information from
> >> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, since I use
> >> > U-Verse at home?
> >>
> >> Yes, the example you provide is the right direction - you can put in
> >> the smtp details you use to connect from Evolution to GMail, you don't
> >> need to setup a separate smtp server on your system.
> >>
> >> Regards
> >> Peter
> >>
> >
> > Well, hold it. I have edited my code to hold the information as we have 
> > discussed earlier, and this is the error I have now:
> >
> > Warning:  include_once(Net/SMTP.php) [function.include-once]: failed to 
> > open stream: No such file or directory in /usr/share/php/Mail/smtp.php on 
> > line 348
> >
> >
> >
> > Warning:  include_once() [function.include]: Failed opening 'Net/SMTP.php' 
> > for inclusion (include_path='.:/usr/share/php') in 
> > /usr/share/php/Mail/smtp.php on line 348
> >
> >
> >
> > Fatal error:  Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.php on 
> > line 349
> >
> > I am not sure what this means. If I have installed pear correctly, what 
> > else do I have to do here? I can see that I have some "significant" error 
> > messages than not getting anything at all.
> >
> > Thanks for your help.
> >
> > Alice
> >
> > _________________________________________________________________
> > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
> > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
> 
> 
> 
> -- 
> http://blogs.linux.ie/kenguest/

As the time of writing this, I have installed the missing Net_SMTP pear package 
unto my Linux box. I have just tested it, and I have received two email 
messages to the desired mailbox, without having to install a mail server. 
Thanks for your help.

I really appreciate this. 

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

Reply via email to