Jump to content

Recommended Posts

Ok... here is what I am trying to do.

 

I have a site that allows users to post events in certain states.

 

When this happens, I want to send an email to every other user in that state to inform them of the posting, and allow them to sign up for that event.

 

I want to have some back end software that sends the email to everyone in that state behind the scenes, so that the user doesn't have to wait for the script to send on the front end. 

 

I guess I need to know if this is something that can be done in PHP?  And if not, how I can do this.  I am running on the LAMP environment.

 

thanks ya'll!

 

  ???

Link to comment
https://forums.phpfreaks.com/topic/51381-backend-email-script/
Share on other sites

I handle this type of thing with a separate PHP script running from cron.  I write scripts that query for the people I want to email, call the mail command as needed, flag those people as emailed in the database, and then close without outputting anything (except errors to a log).  I then call that from a cron with "php -f filename.php".

Link to comment
https://forums.phpfreaks.com/topic/51381-backend-email-script/#findComment-253003
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.