Page 1 of 1

Email Contact

Posted: 16 Feb 2015, 14:19
by alexhenes
Hi Karl...

I noticed that the contact email function no longer works on www.merelyafleshwound.com after installing v0.9.

I also noticed that it does not work on your demo site.

Can you verifiy if v0.9 broke this function?

Thanks

Re: Email Contact

Posted: 16 Feb 2015, 23:27
by mjau-mjau
It looks to me like you have copy-pasted your entire chunk of email settings into the new settings file? It looks like you have pasted it incorrectly ... The settings create an object of configurations, and it is important that the indentations are maintained, so that the structure of the settings are kept in tact. With your settings I see this:
Code
settings:
  pagenav: auto 
  preload: 
  server:
    rewrite	: 
    base_url: 
    reporting: 
    cdn_core: 
    cdn_files: 
    mail:
    to		: 
    from	: 
    subject	: 
    host	: 
    SMTPAuth: 
    username: 
    password: 
    SMTPSecure: 
    port	:
    debug	: 
It should be:
Code
settings:
  pagenav: auto 
  preload: 
  server:
    rewrite	: 
    base_url: 
    reporting: 
    cdn_core: 
    cdn_files: 
  mail:
    to		: 
    from	: 
    subject	: 
    host	: 
    SMTPAuth: 
    username: 
    password: 
    SMTPSecure: 
    port	:
    debug	: 
There is a subtle but crucial difference in the indentation of the "mail" node. If you are going to copy-paste entire segments of settings instead of populating manually, you need to be very careful about doing it correct unfortunately ....
alexhenes wrote:I also noticed that it does not work on your demo site.
We have not yet set up mail in the demo ...

Re: Email Contact

Posted: 17 Feb 2015, 00:41
by alexhenes
subtle...

Thank you!

Re: Email Contact

Posted: 20 Feb 2015, 11:53
by NoirCavalier
As we are at eMail Contact..........

I genereally can´t get the contactform to work......
It doesn´t work for me from 0.6 on and even doesn´t work at 0.9.

The contactform at the checkpage always works for me like a charm, but if i try the contactform at my imprint page it gives me an error.
The error disappears if i fill in the correct SMTP-Settings, but it keeps sending and sending and sending but in doesn´t send it.

So for me it seems to be diffrent code between my checkpage contactform and the contactform i can setup at pages like my imprint page

Re: Email Contact

Posted: 20 Feb 2015, 12:58
by alexhenes
Still having the issue after making these changes.

Does anyone have working smtp email working on v0.9?

Re: Email Contact

Posted: 20 Feb 2015, 13:52
by mjau-mjau
alexhenes wrote:Still having the issue after making these changes.

Does anyone have working smtp email working on v0.9?
Code
host	: smpt.gmail.com
Instead, try:
Code
host	: smtp.gmail.com

Re: Email Contact

Posted: 20 Feb 2015, 14:41
by alexhenes
what is the difference between the two?

Re: Email Contact

Posted: 20 Feb 2015, 16:53
by NoirCavalier
@alexhenes: There´s a typo. ;-)

host : smpt.gmail.com

Instead, try:
host : smtp.gmail.com

Re: Email Contact

Posted: 20 Feb 2015, 16:56
by alexhenes
I am such an idiot... thanks Karl. How does the debug option work... could have I have found this myself... dyslexia and all? :oops:

Re: Email Contact

Posted: 21 Feb 2015, 03:53
by Martin
alexhenes wrote:I am such an idiot... thanks Karl. How does the debug option work... could have I have found this myself... dyslexia and all? :oops:
I also didn't see it :D

Re: Email Contact

Posted: 21 Feb 2015, 10:04
by mjau-mjau
alexhenes wrote:I am such an idiot... thanks Karl. How does the debug option work... could have I have found this myself... dyslexia and all? :oops:
It is a bit hard tracing mail errors, but I user Chrome Developer tools, network tab. Once the mail script triggers (either true or false), I click the script that loaded, and click the "response" tab to view the output:
Image
Image
In your case, I didn't see the typo at first either, but I saw the message "cannot contact server smpt.gmail.com". I thought hmmm now that's strange, so I double checked the smtp setting, and then I noticed the typo.