Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Contact form send no emails on gantry helium

form

Started by rioE 3 years ago · 0 replies · 839 views
3 years ago

hi there.
i'm new.

The email is not being sent when the submit button is pressed, and the message set in the 'message' field is not displayed, nor does it show the page set in 'display' field.
Occasionally, after clicking the submit button, the email is sent when the browser is hard-refreshed.
Since the log is output only when the email is sent after a hard reset, there is no error log. i have no idea.

i checked these articles:
/forum/general/no-email-sent-by-contact-form-t4488
/forum/gantry/gantry-5-helium-contact-form-t1097

the theme is gantry5 helium.
this is the "email.yaml". i tried both ssl(465) and tls(587)

YAML
enabled: true
from: x[email protected]
to: x[email protected]
mailer:
  engine: smtp
  smtp:
    server: mail64.conoha.ne.jp
    port: 587
    encryption: TSL
    user: x[email protected]
    password: xxxxxxxxx
  sendmail:
    bin: '/usr/sbin/sendmail -bs'
content_type: text/html
debug: false
cc: null
bcc: null
reply_to: null
body: null

this is the form data.

YAML
title: contact form
form:
    name: contact
    fields:
        name:
            label: Name
            placeholder: Enter your name
            autocomplete: 'on'
            type: text
            validate:
                required: true
        email:
            label: Email
            placeholder: Enter your email address
            type: email
            validate:
                required: true
        message:
            label: Message
            placeholder: Enter your messages
            type: textarea
            validate:
                required: true
    buttons:
        submit:
            type: submit
            value: Submit
        reset:
            type: reset
            value: Reset
    process:
        save:
            fileprefix: contact-
            dateformat: Ymd-His-u
            extension: txt
            body: '{% include ''forms/data.txt.twig'' %}'
        email:
            subject: '[Site Contact Form] {{ form.value.name|e }}'
            body: '{% include ''forms/data.html.twig'' %}'
        message: Thank you for getting in touch!
        display: /contact/thank-you

this is custom HTML on theme outline.

CSS
<style>
textarea {
    margin-bottom: 1rem;
}
.button {
    padding: 1rem 3.125rem;
    font-size: 1rem;
}
</style>
<div style="margin: 0 auto; max-width: 750px;">{% include 'forms/form.html.twig' with { form: forms('contact') } %}</div>

Thanks in advance.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago