mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
use send_email for welcome email
This commit is contained in:
parent
54a5a8b30f
commit
ded6275c71
1 changed files with 2 additions and 5 deletions
|
@ -76,13 +76,10 @@ post '/create' do
|
|||
|
||||
session[:captcha_valid] = nil
|
||||
|
||||
EmailWorker.perform_async({
|
||||
from: 'web@neocities.org',
|
||||
reply_to: 'contact@neocities.org',
|
||||
to: @site.email,
|
||||
@site.send_email(
|
||||
subject: "[Neocities] Welcome to Neocities!",
|
||||
body: Tilt.new('./views/templates/email_welcome.erb', pretty: true).render(self)
|
||||
})
|
||||
)
|
||||
|
||||
send_confirmation_email @site
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue