Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 544373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:38:52+00:00 2026-05-13T10:38:52+00:00

I need to create a PHP class that would send e-mails to all members

  • 0

I need to create a PHP class that would send e-mails to all members of the website. Simple mysql_fetch_array and loop doesn’t fit because my client wants a class and I actually don’t know much about classes and what he exactly wants. Can you explain or give me any hints?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:38:52+00:00Added an answer on May 13, 2026 at 10:38 am

    Well in general, we can’t tell you what your client wants. You’ll have to ask him. 🙂 But a few general pointers on sending out bigger numbers of E-Mails.

    When putting together an E-Mail class, the most sensitive thing to be aware of, and the most likely reason for it not working, is the number of mails to be sent. mail() is a very slow command for sending mails, and if you have thousands of members, a pure mail() solution is likely to fail, because the run time of a PHP script is usually limited to 30 or 60 seconds.

    Check out E-Mailing classes like PHPMailer that can send directly through SMTP, which is way faster.

    Also be sure to check out whether the server the mails are sent from has any limit imposed on the number of outgoing E-Mails per interval. If you are using a hosting provider, talk to them first. This is also good because then they know you’re not misusing their servers for spam.

    Be sure to do test runs before actually starting the sending out to actual members.

    Also make sure your outgoing E-Mails look o.k. technically so they don’t get spam filtered. See this question for a few pointers.

    For basics on Object Oriented Programming, see e.g. the PHP Manual on the subject.

    Generally, be very careful when working on a mailing system. Make sure you have checks in place that prevent actual sending to actual members before everything is in order. Imagine how embarrassing it is to have ten “asfsafsd” test E-Mails sent out to each person on the recipient list.

    Don’t forget that there are paid services available that do this as well. If there is some budget involved, and you would like to use an existing paid solution rather than do it yourself, you can set up another question here on SO.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need create a variable with parent subclass. Example: Parent Class <?php class parentClass
I have a need to create a library of Object Oriented PHP code that
How to create simple PHP COMET server page displaying current time? I need code
I need to create a php search function for names and need to change
I need to create a PHP order form with 150 lines, each line has
I need to create an ejabberd user from a PHP script. I also need
I need to create a web application using php, I had many users having
i have a php script where i need to create a zip archive with
hi i need to create a bug in bugzilla using bugzilla webservices and php.
i have a php file which stores a variable, and i need to create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.