any ideas for sending out a basic newsletter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • windandwaves

    any ideas for sending out a basic newsletter

    Hi Folk

    I want to send out a basic newsletter from my MySql database of contacts.

    Does anyone know a nice and simple bit of PHP that allows me to do this?

    TIA


    - Nicolas


  • Peter Chant

    #2
    Re: any ideas for sending out a basic newsletter

    windandwaves wrote:
    [color=blue]
    > Hi Folk
    >
    > I want to send out a basic newsletter from my MySql database of contacts.
    >
    > Does anyone know a nice and simple bit of PHP that allows me to do this?[/color]

    Look into mail and also generating rtf or pdf from php unless it is to go
    out in text format.

    --

    Comment

    • noone

      #3
      Re: any ideas for sending out a basic newsletter

      windandwaves wrote:[color=blue]
      > Hi Folk
      >
      > I want to send out a basic newsletter from my MySql database of contacts.
      >
      > Does anyone know a nice and simple bit of PHP that allows me to do this?
      >
      > TIA
      >
      >
      > - Nicolas
      >
      >[/color]

      for server processing, I would say that PHP is the wrong tool for this job.
      1) time for processing email to nnnnnnnn addresses.
      2) time for processing email to nnnnnnnn addresses.
      ......

      What you probably would want to do - and there are security issues to
      deal with.. is have your PHP "admin tool" kick off a job that does this
      from the server...

      There are a number of mailing-list/list-servers out there that would
      handle this much better and run on many different platforms. (Linux,
      windows, UNIX, etc...)

      Michael Austin.

      Comment

      • d

        #4
        Re: any ideas for sending out a basic newsletter

        "noone" <noone@nowhere. com> wrote in message
        news:gRRCf.5251 $2O6.4486@newss vr12.news.prodi gy.com...[color=blue]
        > windandwaves wrote:[color=green]
        >> Hi Folk
        >>
        >> I want to send out a basic newsletter from my MySql database of contacts.
        >>
        >> Does anyone know a nice and simple bit of PHP that allows me to do this?
        >>
        >> TIA
        >>
        >>
        >> - Nicolas[/color]
        >
        > for server processing, I would say that PHP is the wrong tool for this
        > job.
        > 1) time for processing email to nnnnnnnn addresses.
        > 2) time for processing email to nnnnnnnn addresses.
        > .....
        >
        > What you probably would want to do - and there are security issues to deal
        > with.. is have your PHP "admin tool" kick off a job that does this from
        > the server...
        >
        > There are a number of mailing-list/list-servers out there that would
        > handle this much better and run on many different platforms. (Linux,
        > windows, UNIX, etc...)[/color]

        All those tools would do is exactly the same that PHP would do - talk to an
        SMTP server and send out emails. Just have your PHP script respect the
        limitations of your average SMTP server (as in not fire off emails to every
        address at once), and you'll be fine. Learn about mime headers (especially
        multipart/alternative if you want to send html and don't know who will
        accept it), and you can do it all in PHP without much fuss.
        [color=blue]
        > Michael Austin.[/color]


        Comment

        • noone

          #5
          Re: any ideas for sending out a basic newsletter

          d wrote:[color=blue]
          > "noone" <noone@nowhere. com> wrote in message
          > news:gRRCf.5251 $2O6.4486@newss vr12.news.prodi gy.com...
          >[color=green]
          >>windandwave s wrote:
          >>[color=darkred]
          >>>Hi Folk
          >>>
          >>>I want to send out a basic newsletter from my MySql database of contacts.
          >>>
          >>>Does anyone know a nice and simple bit of PHP that allows me to do this?
          >>>
          >>>TIA
          >>>
          >>>
          >>>- Nicolas[/color]
          >>
          >>for server processing, I would say that PHP is the wrong tool for this
          >>job.
          >>1) time for processing email to nnnnnnnn addresses.
          >>2) time for processing email to nnnnnnnn addresses.
          >>.....
          >>
          >>What you probably would want to do - and there are security issues to deal
          >>with.. is have your PHP "admin tool" kick off a job that does this from
          >>the server...
          >>
          >>There are a number of mailing-list/list-servers out there that would
          >>handle this much better and run on many different platforms. (Linux,
          >>windows, UNIX, etc...)[/color]
          >
          >
          > All those tools would do is exactly the same that PHP would do - talk to an
          > SMTP server and send out emails. Just have your PHP script respect the
          > limitations of your average SMTP server (as in not fire off emails to every
          > address at once), and you'll be fine. Learn about mime headers (especially
          > multipart/alternative if you want to send html and don't know who will
          > accept it), and you can do it all in PHP without much fuss.
          >
          >[color=green]
          >>Michael Austin.[/color]
          >
          >
          >[/color]
          again, use the right tool for the job at hand. While PHP can "talk" to
          an smtp server, I do not believe it is the right tool for the job.
          Kind-of like using a spoon to shovel the driveway. While it can do it,
          is it the right tool for the job. If it were one or two emails at the
          click of the mouse - fine, in fact I use phpmailer to do some things for
          me. But to send 50+ emails - it is the wrong tool. PHP is/was designed
          for user interaction via a browser. It can do things interactively via
          an interactive telnet/ssh session, but again is it the correct tool for
          the job. As a sysadmin/dba I would say no. And having 20+ years of
          experience supporting very large shops, (Linux, Unix 8 different
          flavors, OpenVMS, Windows, Oracle, DEC/Rdb, MySQL, SqlServer, Apache,
          IIS, iPlanet, OSU web server, php, html, xml, c, c++,java, cobol, smtp
          servers, (mime encoding included) etc...), I *can* say with some
          authority, that PHP might not be the best tool for the job.

          Michael.

          Comment

          • Good Man

            #6
            Re: any ideas for sending out a basic newsletter

            noone <noone@nowhere. com> wrote in
            news:7JYCf.1511 9$_S7.8945@news svr14.news.prod igy.com:
            [color=blue]
            > again, use the right tool for the job at hand. While PHP can "talk"
            > to an smtp server, I do not believe it is the right tool for the job.
            > Kind-of like using a spoon to shovel the driveway. While it can do
            > it, is it the right tool for the job. If it were one or two emails at
            > the click of the mouse - fine, in fact I use phpmailer to do some
            > things for me. But to send 50+ emails - it is the wrong tool.[/color]

            i do not profess to be any sort of expert, but i use PHP to send out 3000+
            emails daily to a list of subscribers (via a cron job). I get all the
            addresses at once from MySQL, put them into an array, disconnect from the
            database, then use a 'mass e-mail' class to compose individual emails and
            send them. I just can't see any difference between PHP writing an email
            and handing it off to sendmail vs having outlook/thunderbird/etc writing an
            email and handing it off to sendmail.

            aren't PHP discussions regarding this type of online application
            irrelevant? after all, PHP has no trouble creating thousands of strings,
            arrays, text files, emails, zip files, etc. all very quickly. If there's
            anything to worry about, i'd figure it's the load capabilities of
            'sendmail' or whatever your mail server is.

            Comment

            • crucialmoment

              #7
              Re: any ideas for sending out a basic newsletter

              You might check with your hosting company (if you are using one)
              regarding their policies before sending a mass email - some may flag
              the activity as spamming.
              You might also look into using a mailing list if provided - that way
              your script sends one email and the mailing list takes care of the
              rest. Many web hosting companies provide access to Mailman
              (http://www.gnu.org/software/mailman/) or some other mailing list
              utility.

              Good luck

              Comment

              • d

                #8
                Re: any ideas for sending out a basic newsletter

                "noone" <noone@nowhere. com> wrote in message
                news:7JYCf.1511 9$_S7.8945@news svr14.news.prod igy.com...[color=blue]
                >d wrote:[color=green]
                >> "noone" <noone@nowhere. com> wrote in message
                >> news:gRRCf.5251 $2O6.4486@newss vr12.news.prodi gy.com...
                >>[color=darkred]
                >>>windandwav es wrote:
                >>>
                >>>>Hi Folk
                >>>>
                >>>>I want to send out a basic newsletter from my MySql database of
                >>>>contacts.
                >>>>
                >>>>Does anyone know a nice and simple bit of PHP that allows me to do this?
                >>>>
                >>>>TIA
                >>>>
                >>>>
                >>>>- Nicolas
                >>>
                >>>for server processing, I would say that PHP is the wrong tool for this
                >>>job.
                >>>1) time for processing email to nnnnnnnn addresses.
                >>>2) time for processing email to nnnnnnnn addresses.
                >>>.....
                >>>
                >>>What you probably would want to do - and there are security issues to
                >>>deal with.. is have your PHP "admin tool" kick off a job that does this
                >>>from the server...
                >>>
                >>>There are a number of mailing-list/list-servers out there that would
                >>>handle this much better and run on many different platforms. (Linux,
                >>>windows, UNIX, etc...)[/color]
                >>
                >>
                >> All those tools would do is exactly the same that PHP would do - talk to
                >> an SMTP server and send out emails. Just have your PHP script respect
                >> the limitations of your average SMTP server (as in not fire off emails to
                >> every address at once), and you'll be fine. Learn about mime headers
                >> (especially multipart/alternative if you want to send html and don't know
                >> who will accept it), and you can do it all in PHP without much fuss.
                >>
                >>[color=darkred]
                >>>Michael Austin.[/color]
                >>
                >>
                >>[/color]
                > again, use the right tool for the job at hand. While PHP can "talk" to an
                > smtp server, I do not believe it is the right tool for the job. Kind-of
                > like using a spoon to shovel the driveway. While it can do it, is it the
                > right tool for the job. If it were one or two emails at the click of the
                > mouse - fine, in fact I use phpmailer to do some things for me. But to
                > send 50+ emails - it is the wrong tool. PHP is/was designed for user
                > interaction via a browser. It can do things interactively via an
                > interactive telnet/ssh session, but again is it the correct tool for the
                > job. As a sysadmin/dba I would say no. And having 20+ years of
                > experience supporting very large shops, (Linux, Unix 8 different flavors,
                > OpenVMS, Windows, Oracle, DEC/Rdb, MySQL, SqlServer, Apache, IIS, iPlanet,
                > OSU web server, php, html, xml, c, c++,java, cobol, smtp servers, (mime
                > encoding included) etc...), I *can* say with some authority, that PHP
                > might not be the best tool for the job.[/color]

                PHP was designed initially for use in a web server, but it can equally be
                used as a scripting language in any other way that scripting languages are
                used. PHP is the perfect tool for mass-mailing, if used properly. I've
                worked at companies that have used to to send thousands of emails, and it
                works perfectly. The SMTP server doesn't care what's talking to it, as long
                as it's talked to with respect (as in not hammering it).

                You can say with some authority, but you'd be somewhat wrong on this
                occasion. PHP is very useful for a host of jobs it wasn't initially
                designed for. PHP has come a long way since php/fi, and mailing massive
                amounts of emails is one of the jobs it can do incredibly well. Equating it
                to a spoon is doing it a great disservice ;)
                [color=blue]
                > Michael.[/color]

                dave :)


                Comment

                • d

                  #9
                  Re: any ideas for sending out a basic newsletter

                  "Good Man" <heyho@letsgo.c om> wrote in message
                  news:Xns975AF5E 1FDAAsonicyouth @216.196.97.131 ...[color=blue]
                  > noone <noone@nowhere. com> wrote in
                  > news:7JYCf.1511 9$_S7.8945@news svr14.news.prod igy.com:
                  >[color=green]
                  >> again, use the right tool for the job at hand. While PHP can "talk"
                  >> to an smtp server, I do not believe it is the right tool for the job.
                  >> Kind-of like using a spoon to shovel the driveway. While it can do
                  >> it, is it the right tool for the job. If it were one or two emails at
                  >> the click of the mouse - fine, in fact I use phpmailer to do some
                  >> things for me. But to send 50+ emails - it is the wrong tool.[/color]
                  >
                  > i do not profess to be any sort of expert, but i use PHP to send out 3000+
                  > emails daily to a list of subscribers (via a cron job). I get all the
                  > addresses at once from MySQL, put them into an array, disconnect from the
                  > database, then use a 'mass e-mail' class to compose individual emails and
                  > send them. I just can't see any difference between PHP writing an email
                  > and handing it off to sendmail vs having outlook/thunderbird/etc writing
                  > an
                  > email and handing it off to sendmail.[/color]

                  Sendmail can't tell the difference, and doesn't give a damn what's sending
                  mail through it, as long as the mails are formatted correctly :)
                  [color=blue]
                  > aren't PHP discussions regarding this type of online application
                  > irrelevant? after all, PHP has no trouble creating thousands of strings,
                  > arrays, text files, emails, zip files, etc. all very quickly. If there's
                  > anything to worry about, i'd figure it's the load capabilities of
                  > 'sendmail' or whatever your mail server is.[/color]

                  Exactly. That's why if you get your mailer script to send the mails in
                  batches, having a decent pause between batches, your mail server will have
                  no problem. As you say, it's the mail server that is the weak link, and as
                  long as you code with that in mind, php is a very great tool for mass
                  mailing.

                  dave


                  Comment

                  Working...