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

Contact form can't send to email!

Started by daibac 7 years ago · 12 replies · 3188 views
7 years ago

Make sure you configured the Email plugin to ensure it has the correct configuration in order to send email successfully.

20|292x500

Welcome to Grav community 😀

👍 2
7 years ago

I already configed! you can see! if wrong you can fixx give me!

7 years ago

check your SMTP configuration with your provider, test it, you will get error message if something wrong (username, password..)

👍 2
7 years ago

Hello,

I would also change the from email adresse. By default when you use the grav form the sender = the email of the person trying to reach you. This will not work since your web server may not be allow to send email on behalf of youre web visitors (you won't be in their dns spf record).

For this I would recommend to change this in the form (in expert mode on the grav page referring to your form)

I would change this:

TWIG
        from: '{{ form.value.email }}'

By :

TWIG
     from: '{{ config.plugins.email.from }}' 

This will make the sender = the value that you have enter in the email plugin

Good luck !

👍 2
1 reply
7 years ago

Hello,

gmail smtp ports are those from google search

  • Gmail SMTP port (TLS): 587.
  • Gmail SMTP port (SSL): 465.

Maybe this will work better.

Bye

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 14 hours ago
1 43 7 hours ago
Support · by gtx, 1 week ago
4 227 1 day ago
Support · by Paul Hodges, 2 weeks ago
13 274 5 days ago
Support · by Anna, 3 weeks ago
9 333 1 week ago
Support · by TomW, 2 weeks ago
4 187 1 week ago