Initial commit
This commit is contained in:
8
api/hooks/contact/post_create.js
Normal file
8
api/hooks/contact/post_create.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const { cryptchaCheck } = require("../lib/utils")
|
||||
;(function () {
|
||||
throw {
|
||||
status: 500,
|
||||
data: "Hello, World!",
|
||||
}
|
||||
cryptchaCheck()
|
||||
})()
|
||||
11
api/hooks/contact/post_return.js
Normal file
11
api/hooks/contact/post_return.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const { noReplyEmail, contactEmail } = require("../config")
|
||||
;(function () {
|
||||
context.smtp.sendMail({
|
||||
to: contactEmail,
|
||||
from: noReplyEmail,
|
||||
fromName: "BinKrassDuFass",
|
||||
replyTo: noReplyEmail,
|
||||
subject: "New Contact Request",
|
||||
plain: "Neue Kontaktanfrage",
|
||||
})
|
||||
})()
|
||||
Reference in New Issue
Block a user