Commit b85a16cb by Thanh Hung Pham

Config send mail apply job

parent 4428c2e1
......@@ -19,7 +19,7 @@ class JobsController < ApplicationController
end
def done
ApplyMailer.apply_mail(current_user).deliver
end
def show
......
class ApplyMailer < ApplicationMailer
default from: 'hungpt@zigexn.vn'
def apply_mail(current_user)
mail(to: current_user.email, subject: 'Thank you for apply with VeNJOB')
end
end
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h2>Hello</h2>
</body>
</html>
require 'test_helper'
class ApplyMailerTest < ActionMailer::TestCase
# test "the truth" do
# assert true
# end
end
# Preview all emails at http://localhost:3000/rails/mailers/apply_mailer
class ApplyMailerPreview < ActionMailer::Preview
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment