This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/mailers/DMailer.php

11 lines
629 B
PHP
Raw Normal View History

2013-10-27 01:06:58 +02:00
<?php
# Sends email to future!
# Or not. It sends dmail.
class DMailer extends Rails\ActionMailer\Base
{
public function user_record_notification($user_record)
{
// $body = $user_record->reporter->name . " created a " . ($user_record->is_positive() ? 'positive' : 'negative') . " record for your account. <<#{url_for :controller => :user_record, :action => :index, :user_id => user_record.user_id, :host => CONFIG['server_host'] }|View your record>>."
// Dmail.create(:from_id => user_record.reported_by, :to_id => user_record.user_id, :title => "Your user record has been updated", :body => body)
}
}