I was hoping to get help on being able to have a skelton code that could automatically send a user an email. I noticed the donate system had one, but I couldn't figure out how to alter it. I'm wanting one for passwords and email resets.
The donate email user was this:
The donate email user was this:
$recipient->getoptions();
if($recipient->options->newmessagenotify == 1){
// We are sending this user an email about the donation
$headers = "From: {$mysidia->settings->systememail}";
$sitename = $mysidia->settings->sitename;
$message = "Hello {$recipient->username};\n\nYou have received {$amount} {$mysidia->settings->cost} donation from {$this->username} at {$sitename}.
Thank You. The {$siteName} team.";
mail($recipient->email, $sitename." - You Have Received a {$mysidia->settings->cost} Donation", $message, $headers);