thread reply emails! also a few mail bugfixes
This commit is contained in:
@@ -16,4 +16,11 @@ class RegistrationPreview < ActionMailer::Preview
|
||||
def register_info_mail_idiot
|
||||
RedstonerMailer.register_info_mail(@@user, true)
|
||||
end
|
||||
|
||||
def thread_reply_mail
|
||||
op = User.new(id: 32, name: "TheOP", email: "theopuser@example.com")
|
||||
thread = Forumthread.new(id: 123, user_author: op, title: "Wow, test thread!", content: "You should not see this...")
|
||||
reply = Threadreply.new(id: 312, user_author: @@user, content: "# Markdown!\n\n`incline code`\n\n<b>html?</b>\n\n[yt:abcd1234]\n\n[link](/forums)", forumthread: thread)
|
||||
RedstonerMailer.thread_reply_mail(@@user, reply)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user