Re: Mail Function Using PEAR Issues

From: Date: Wed, 21 Apr 2010 20:01:03 +0000
Subject: Re: Mail Function Using PEAR Issues
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-304373@lists.php.net to get a copy of this message
On 21 April 2010 21:58, Alice Wei <ajwei@alumni.iu.edu> wrote: >> From: peter.e.lind@gmail.com >> Date: Wed, 21 Apr 2010 21:51:31 +0200 >> Subject: Re: [PHP] Mail Function Using PEAR Issues >> To: ajwei@alumni.iu.edu >> CC: ash@ashleysheridan.co.uk; php-general@lists.php.net >> >> On 21 April 2010 18:44, Alice Wei <ajwei@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 -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 </hype>

« previous php.general (#304373) next »