
gversion
User
Dec 7, 2011, 3:49 PM
Post #1 of 8
(2015 views)
Shortcut
|
|
emailUsers.php - cron job
|
Can't Post
|
|
Hello, I paid for some consulting time to create a plug-in that I could setup via a cron job to email users after 3 and 14 days depending on certain actions. It was either Robin or Tom that did this work I think :) Ross as sent me the file but when I try and run it via cron I receive an error message - something is apparently wrong on Line 17...
<?php /* This script runs from cron and determines: 1. Users who have registered but not opsted a listing (for 7 days and 14 days) 2. Users who have recieved messages from the contact form (3 days ago, 14 days ago) 3. Public who have sent message through the contact form (3 days ago, 14 days ago) It then sends a follow-up email from the email template list specific to that person. (A modified version of Robins updatelistings.php) */ // $placeholders = array( 'from' => $GLOBALS['SETTINGS']['adminEmail'], 'to' => $, // THIS IS LINE 17 'buyer_name' => $buyerName, 'buyer_email' => $buyerEmail, 'buyer_phone' => $buyerPhone, 'seller_name' => $sellerName, 'subject' => htmlspecialchars($_REQUEST['subject']), 'listing_id' => $_REQUEST['listing_id'], 'listing_item' => $listingsRecord['product'] ); Can you please help to fix this so I can get the file working correctly? I'm attaching it to this post. Thank you, Greg
|