Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Contact form can't send to email!

Started by daibac 7 years ago · 12 replies · 3293 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 complanar, 5 days ago
5 128 2 hours ago
Support · by Rick Beebe, 5 days ago
2 97 2 days ago
Support · by blu3prince, 2 days ago
0 46 2 days ago
Support · by alex, 3 days ago
2 89 2 days ago
Support · by Marcel, 1 week ago
1 141 3 days ago