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

  • SEARCH
  • Home
  • 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 5845933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:30:20+00:00 2026-05-22T12:30:20+00:00

I have a simple user signup form with a checkbox that lets users get

  • 0

I have a simple user signup form with a checkbox that lets users get a daily email notification if there was activity on any of their projects…much like Stack Overflow has a “Notify xxx@example.com daily of any new answers”.

My current thinking to implement this in a LAMP environment is as follows:

  1. In the user database, set a boolean value if the user wishes to receive a daily email.

  2. If there is any project activity, the project gets updated with the current timestamp.

  3. Each night (midnight), a PHP file is executed (likely through a cron job) that scans through the project database to identify which projects had activity that day. For projects with activity, the project owner name is selected and the user table is scanned to check if the user wishes to receive a daily email notification. If yes, add to a recipient list; else, ignore.

Questions / concerns I have that would appreciate some guidance on before I start to implement:

  1. I’m in a shared hosting environment. What precautions do I need to take from being misidentified as spam either by the hosting company or the receiving mail servers?

  2. Do I need to “chunk” out the recipient list (50 emails at a time) and email each group? Is this as simple as putting a sleep(30); between each call to mail()?

  3. I’m using the CodeIgniter framework and will have the cron job call the appropriate function in a controller to run this at midnight. How do I limit calls from only the cron job to prevent some unauthorized user from calling this function from the browser?

Thanks.

  • 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-22T12:30:21+00:00Added an answer on May 22, 2026 at 12:30 pm
    1. If you do change the “From” header in php, make sure you change it to the domain that’s hosted on that server. It looks suspicious when mail @a.com is being sent by b.com’s servers.

    2. I would send the emails individually foreach ($Users as $User)..., since this allows you to personalize the email contents. Even if you don’t need to personalize emails now, you might want to later, and the support for it will already be there when you need it.

    3. First, I would store the script outside of the web root. I’m not sure if CodeIgniter will let you do this, but there is no need for the script to ever be served by Apache. Cron doesn’t care where the script is stored. Additionally, I’ve checked the time when the script is executed. If it’s not midnight, then don’t blast out the emails. Also, you could keep a log around and also check to make sure the emails haven’t already been sent that day before sending.

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

Sidebar

Related Questions

Simple scenario: I have a signup form, with user name, password, email address, may
I have a simple form on a view page, implemented as a user control,
I have a simple database with two tables. Users and Configurations. A user has
I have simple registration form. Once all information entered, user click submit button and
I have a simple login form, username and password. Basically, When a user is
I have a simple email address sign up form as follows: <form action= id=newsletterform
Cron installation is vixie-cron /etc/cron.daily/rmspam.cron #!/bin/bash /usr/bin/rm /home/user/Maildir/.SPAM/cur/*; I Have this simple bash script
I have built a simple Eclipse plugin where a user may use a TableViewer
I have implemented a simple file upload-download mechanism. When a user clicks a file
Should simple JavaBeans that have only simple getters and setters be unit tested?? What

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.