Skip to content

Commit

Permalink
Merge pull request #229 from indyhackers/apoland/reply_email
Browse files Browse the repository at this point in the history
  • Loading branch information
apoland authored Sep 10, 2024
2 parents af7559b + 78da760 commit 6b42d06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/mailers/system_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
class SystemMailer < ActionMailer::Base
default from: "alfred@indyhackers.org"
default to: "miles@indyhackers.org"
default from: "hacks@indyhackers.org"
default to: "hacks@indyhackers.org"

def job_post_request(job_post_request, job)
@job_post_request = job_post_request
@job = job
mail(
subject: "[IndyHackers Jobs] #{@job_post_request.title}",
from: %("#{@job_post_request.name}" <alfred@indyhackers.org>),
from: %("#{@job_post_request.name}" <hacks@indyhackers.org>),
reply_to: @job_post_request.email
)
end

def job_post_published(user, job)
@user = user
@job = job
send_to = @user.present? ? [@user.email, "miles@indyhackers.org"] : "miles@indyhackers.org"
send_to = @user.present? ? [@user.email, "hacks@indyhackers.org"] : "hacks@indyhackers.org"
mail(
subject: "[IndyHackers Jobs] Published! #{@job.title}",
from: %("IndyHackers" <alfred@indyhackers.org>),
reply_to: "miles@indyhackers.org",
from: %("IndyHackers" <hacks@indyhackers.org>),
reply_to: "hacks@indyhackers.org",
to: send_to
)
end
Expand Down

0 comments on commit 6b42d06

Please sign in to comment.