mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42: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
|
session[:captcha_valid] = nil
|
||||||
|
|
||||||
EmailWorker.perform_async({
|
@site.send_email(
|
||||||
from: 'web@neocities.org',
|
|
||||||
reply_to: 'contact@neocities.org',
|
|
||||||
to: @site.email,
|
|
||||||
subject: "[Neocities] Welcome to Neocities!",
|
subject: "[Neocities] Welcome to Neocities!",
|
||||||
body: Tilt.new('./views/templates/email_welcome.erb', pretty: true).render(self)
|
body: Tilt.new('./views/templates/email_welcome.erb', pretty: true).render(self)
|
||||||
})
|
)
|
||||||
|
|
||||||
send_confirmation_email @site
|
send_confirmation_email @site
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue