<?php
$coname=CO_NAME;
$wmm_url= "http://$thedomain/".MEMBERS_SECTION_FOLDER."/members";
$thesubject="Your membership with $coname will expire in $days days.";
$themessage="Hi $firstname,
Your membership with $coname will expire in $days days.
To renew your membership:
login to your account here:
$wmm_url
When logged in click on the link at the end of the page.
This email is a single reminder to renew your membership with us,
it is sent to both your username: $their_username
AND your contact email address: $email
WARNING:
If you do not renew your account with us within the
next $days days your account will be deleted.
Kind regards from $coname
http://$thedomain ";
wmm_mail($email,$thesubject,$themessage);
wmm_mail($their_username,$thesubject,$themessage);
$dbc = dbc::instance();
$result = $dbc->prepare("SELECT * from wmm_admin");
$rows = $dbc->executeGetRows($result);
$contactAdminEmail = $rows[0]['contact_email'];
wmm_mail($contactAdminEmail,"ADMIN COPY: ".$thesubject,$themessage);
?>