5 Replies - 155 Views - Last Post: 30 April 2019 - 05:40 PM Rate Topic: -----

#1 pfar54   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 519
  • Joined: 30-April 15

Email/Text repeating notifications

Posted 29 April 2019 - 05:44 PM

I am looking to build a system in which checks an inventory and emails notifications based on a certain criteria. The criteria would run once a new product is added. Then ideally, I would want an email/text notification to send out.

At first, I was thinking a cron job would be ideal for the email, but it would be better if the email notification went out shortly after the product was added, rather than at a random time in the day. Still though, does someone know a good way to do this?

Then on the texting side. Does anyone know a good Wordpress plugin/third-party company that would make this easy to do?

Is This A Good Question/Topic? 0
  • +

Replies To: Email/Text repeating notifications

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2290
  • View blog
  • Posts: 6,981
  • Joined: 15-January 14

Re: Email/Text repeating notifications

Posted 30 April 2019 - 09:51 AM

What issues are you having with the emails? If you want to send an email when a product is added, what's the barrier to doing that? If you want to find plugins that send text messages, search for SMS plugins.
Was This Post Helpful? 0
  • +
  • -

#3 pfar54   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 519
  • Joined: 30-April 15

Re: Email/Text repeating notifications

Posted 30 April 2019 - 05:28 PM

View PostArtificialSoldier, on 30 April 2019 - 09:51 AM, said:

What issues are you having with the emails? If you want to send an email when a product is added, what's the barrier to doing that? If you want to find plugins that send text messages, search for SMS plugins.


Because if multiple products are added, I wasn't wanting to bombard the user with emails one after another. Is there a way to delay this and check if multiple products are added? This is why initially I was thinking the cron, but I have never done one before.

I know I can search for SMS plugins and have, but I didn't know if anyone here had any experience with a specific plugin/software to do this.
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2290
  • View blog
  • Posts: 6,981
  • Joined: 15-January 14

Re: Email/Text repeating notifications

Posted 30 April 2019 - 05:32 PM

Quote

Is there a way to delay this and check if multiple products are added?

You can do anything you can think of. Maybe add a list of events to a particular table, if they should go to a certain recipient or whatever, and every 10 minutes or so run a cron job that checks for events, sends an email with all of them, and clears them from the table.
Was This Post Helpful? 0
  • +
  • -

#5 pfar54   User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 519
  • Joined: 30-April 15

Re: Email/Text repeating notifications

Posted 30 April 2019 - 05:37 PM

Do you think the cron job makes the most sense then? I was trying to figure out how to setup the cron job, but I can't get into SSH to find where my path to php is.

This what my command line looks like so far.

/your/path/to/php /home4/myuser/public_html/site.com/php/script.php

Was This Post Helpful? 0
  • +
  • -

#6 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2290
  • View blog
  • Posts: 6,981
  • Joined: 15-January 14

Re: Email/Text repeating notifications

Posted 30 April 2019 - 05:40 PM

If you want something to run on a schedule then cron is your best bet.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1