Skip to main content
Inspiring
October 11, 2012
Question

auto generate reminder email based on two values

  • October 11, 2012
  • 1 reply
  • 722 views

I have a property payment system set where a customer chooses a property, then select a duration they will be in the property (either 364 days or 301 days)

they then select how they will pay the money, either monthly, termly, 3 set payments or total

what i need is a automated email reminder to be sent out to the customer based on the date they moved in and there payment option

this seems rather complicated and wanted to know if anyone can lend an idea of how this can be acheived

thanks in advance

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
October 11, 2012

I would do this with a cron job. Depending on the way the payment system works, the cron job could run daily or weekly.

You need to set up a script to query the database and send out emails based on the results. However, you need to be careful about sending a large number of emails using mail() in a loop. Not only is it slow, but it's likely to be seen as spam.

Inspiring
October 11, 2012

no it wouldnt be large numbers of email, only 140 customers with around 4 payment each per year.

ok thanks.