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 can't send to email!

Started by daibac 7 years ago · 12 replies · 2931 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've had this problem before.
For me it was because Gmail had a protection and refused to send mail without my consent.
I had to change some parameter in gmail or in my google account, I don't really remember to be honest... but it's a lead.

👍 2
7 years ago

@AmauryH for gmail it's probably due to Control access to less secure apps

https://support.google.com/a/answer/6260879?hl=en

but i that case it seems this is not gmail the SMTP but Mailtrap, for gmail tou have to change the SMTP configuration (server, port etc)

👍 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
7 years ago

@AmauryH:
I had to change some parameter in gmail or in my google account, I don’t really remember to be honest… but it’s a lead.

you can take a photo! i understant! please!

7 years ago

i can change where?
i can't link folder/file!
you can talk about more!
thank!

7 years ago

@dimitrilongo:
but i that case it seems this is not gmail the SMTP but Mailtrap, for gmail tou have to change the SMTP configuration (server, port etc)

you con give me see : the SMTP configuration (server, port etc)!
I have configuration !
image|494x500

where i need change?
thank you so much!

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 Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 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