-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
111 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
enabled: true | ||
from: your@email.here | ||
to: your@email.here | ||
mailer: | ||
engine: mail | ||
smtp: | ||
server: localhost | ||
port: 25 | ||
encryption: none | ||
user: '' | ||
password: '' | ||
sendmail: | ||
bin: '/usr/sbin/sendmail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: Contact Form | ||
menu: Contact | ||
form: | ||
name: my-nice-form | ||
classes: comment-form | ||
fields: | ||
- name: name | ||
label: Name | ||
placeholder: Enter your name | ||
autofocus: on | ||
autocomplete: on | ||
type: text | ||
validate: | ||
required: true | ||
|
||
- name: email | ||
label: Email | ||
placeholder: Enter your email address | ||
type: text | ||
validate: | ||
rule: email | ||
required: true | ||
|
||
- name: message | ||
label: Message | ||
size: long | ||
placeholder: Enter your message | ||
type: textarea | ||
validate: | ||
required: true | ||
|
||
buttons: | ||
- type: submit | ||
value: Submit | ||
|
||
process: | ||
- email: | ||
from: "{{ config.plugins.email.from }}" | ||
to: | ||
- "{{ config.plugins.email.from }}" | ||
- "{{ form.value.email }}" | ||
subject: "[Feedback] {{ form.value.name|e }}" | ||
body: "{% include 'forms/data.html.twig' %}" | ||
- save: | ||
fileprefix: feedback- | ||
dateformat: Ymd-His-u | ||
extension: txt | ||
body: "{% include 'forms/data.txt.twig' %}" | ||
- message: Thank you for your feedback! | ||
- display: thankyou | ||
--- | ||
|
||
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Thank you ! | ||
--- | ||
|
||
Your email was sent. Thank you ! |