Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14150
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: sending pdf files to individual email... |
| Date | 2014-07-29 14:19 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <lr8ojm$kvs$1@dont-email.me> (permalink) |
| References | <80518368-4133-4211-9d51-4949a5799d06@googlegroups.com> <0.c785a44165ca78df9327.20140729114034BST.87ha2030ta.fsf@bsb.me.uk> <lr881l$ovj$1@dont-email.me> <0.cb7ec34f1f7a3ac6698c.20140729183132BST.87mwbscbrf.fsf@bsb.me.uk> |
On 7/29/2014 1:31 PM, Ben Bacarisse wrote: > Jerry Stuckle <jstucklex@attglobal.net> writes: > >> On 7/29/2014 6:40 AM, Ben Bacarisse wrote: >>> nag <visitnag@gmail.com> writes: >>> <snip> >>>> I have a text file with employee_number and employee_name and >>>> employee_email id delimited with comma. >>>> >>>> i have uploaded it into a mysql table called empDetails. >>> >>> That may not be the best thing to do. For example, if the definitive >>> source of the data is somewhere else and it's been exported to you to >>> do this task, putting it into a DB just complicates the process and adds >>> another point of failure. It does not make the task any easier. >>> >>> (Of course, there are lots of cases when it *is* the right thing to do -- >>> it's impossible to say from what you've said.) >> >> Actually, I think it's a pretty logical thing to do. Retrieving data >> from a SQL database is easier than a .csv file. > > I'd say they are pretty much the same, with the DB being a tad more > fussy if it needs authentication. But I was talking about the work > flow. I was saying that fopen and an fgetcsv loop is easier than the > import *plus* the read from DB. > If all you're going to do is read sequentially from the file, then there is no big difference. But if you want to search the file, mark emails as sent or any of a number of other things, then a sql database runs rings around a .csv file. > <snip> >>> [1] http://pear.php.net/package/Mail_Mime >>> [1] http://pear.php.net/package/Mail >>> >> >> Pear's Mail package hasn't been updated in over 4 years and looks to >> have been abandoned. I find PHPMailer to be much superior. It's >> available on GitHub. > > That looks very good. > > I'd always assumed (without any justification) that it was the PHP > equivalent of CTAN for TeX or Hackage for Haskell -- that most of the > good stuff would eventually end up there (with some bad stuff that needs > to be filtered out). Maybe PEAR is administered in some why that puts > people off, or maybe PHPMailer is a lone example? > I don't know - I've never submitted anything to PEAR. But there are a number of packages available for PHP which aren't in PEAR. PHPMailer is just one of them. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
sending pdf files to individual email... nag <visitnag@gmail.com> - 2014-07-28 22:31 -0700
Re: sending pdf files to individual email... "J.O. Aho" <user@example.net> - 2014-07-29 09:34 +0200
Re: sending pdf files to individual email... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-07-29 11:40 +0100
Re: sending pdf files to individual email... Jerry Stuckle <jstucklex@attglobal.net> - 2014-07-29 09:36 -0400
Re: sending pdf files to individual email... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-07-29 18:31 +0100
Re: sending pdf files to individual email... Jerry Stuckle <jstucklex@attglobal.net> - 2014-07-29 14:19 -0400
Re: sending pdf files to individual email... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-29 20:40 +0200
Re: sending pdf files to individual email... Luuk <luuk@invalid.lan> - 2014-07-30 20:26 +0200
Re: sending pdf files to individual email... Denis McMahon <denismfmcmahon@gmail.com> - 2014-07-29 19:53 +0000
Re: sending pdf files to individual email... Denis McMahon <denismfmcmahon@gmail.com> - 2014-07-29 19:50 +0000
Re: sending pdf files to individual email... Derek Turner <frderek@cesmail.net> - 2014-07-29 11:11 +0000
Re: sending pdf files to individual email... nag <visitnag@gmail.com> - 2014-08-19 07:20 -0700
Re: sending pdf files to individual email... Jerry Stuckle <jstucklex@attglobal.net> - 2014-08-19 11:42 -0400
Re: sending pdf files to individual email... Michael Vilain <vilain@NOspamcop.net> - 2014-08-22 22:46 -0700
csiph-web