مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
initial commit from appmail
هذا الالتزام موجود في:
47
app/mailers/app_mailer.rb
Normal file
47
app/mailers/app_mailer.rb
Normal file
@@ -0,0 +1,47 @@
|
||||
class AppMailer < ApplicationMailer
|
||||
|
||||
def verify_email_address(user)
|
||||
@user = user
|
||||
mail :to => @user.email_address, :subject => "Verify your new e-mail address"
|
||||
end
|
||||
|
||||
def new_user(user)
|
||||
@user = user
|
||||
mail :to => @user.email_address, :subject => "Welcome to Postal"
|
||||
end
|
||||
|
||||
def user_invite(user_invite, organization)
|
||||
@user_invite = user_invite
|
||||
@organization = organization
|
||||
mail :to => @user_invite.email_address, :subject => "Access the #{organization.name} organization on Postal"
|
||||
end
|
||||
|
||||
def verify_domain(domain, email_address, user)
|
||||
@domain = domain
|
||||
@email_address = email_address
|
||||
@user = user
|
||||
mail :to => email_address, :subject => "Verify your ownership of #{@domain.name}"
|
||||
end
|
||||
|
||||
def password_reset(user, return_to = nil)
|
||||
@user = user
|
||||
@return_to = return_to
|
||||
mail :to => @user.email_address, :subject => "Reset your Postal password"
|
||||
end
|
||||
|
||||
def server_send_limit_approaching(server)
|
||||
@server = server
|
||||
mail :to => @server.organization.notification_addresses, :subject => "[#{server.full_permalink}] Mail server is approaching its send limit"
|
||||
end
|
||||
|
||||
def server_send_limit_exceeded(server)
|
||||
@server = server
|
||||
mail :to => @server.organization.notification_addresses, :subject => "[#{server.full_permalink}] Mail server has exceeded its send limit"
|
||||
end
|
||||
|
||||
def server_suspended(server)
|
||||
@server = server
|
||||
mail :to => @server.organization.notification_addresses, :subject => "[#{server.full_permalink}] Your mail server has been suspended"
|
||||
end
|
||||
|
||||
end
|
||||
4
app/mailers/application_mailer.rb
Normal file
4
app/mailers/application_mailer.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class ApplicationMailer < ActionMailer::Base
|
||||
default :from => "#{Postal.smtp_from_name} <#{Postal.smtp_from_address}>"
|
||||
layout false
|
||||
end
|
||||
المرجع في مشكلة جديدة
حظر مستخدم