nliautaud / p01contact

Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
MIT License
16 stars 15 forks source link

Emails not being received #12

Closed tarrp closed 6 years ago

tarrp commented 7 years ago

Hi,

I have just discovered that my p01-contact form (http://bbmc.boys-brigade.org.uk/index.php?id=contact-us) is not working. It was working previously, but had not been tested for a long time. I have now tried to send a test message and although it says it has sent it, the email is not received. I had made no configuration changes before it stopped working, but when I looked at the configuration. it had the minimum message size of 100 and no email address in the contact field. I am sure that I was able to send emails including short messages previously. I have fixed both of these problems but emails are still not being received.

The syntax I am using is:

(% contact : p.tarr@btinternet.com, name!, subject!, email!, phone, text "Company", text "Battalion/District", message! %)

Can anyone explain what has happened, why this no longer works and what can be done to fix it.

Thanks,

Phil Tarr (BB Mountaineering Club)

tarrp commented 7 years ago

Hi once again,

After searching through backups and thinking about what I might have done, I think I might have understood what happened to the configuration.

Firstly, the lack of any data in the default email address field would not have been a problem as I had included the email address to forward to in the code.

Secondly, a few years ago, I reloaded the GetSimple CMS and all the plugins I was using to fix a problem. I didn't then change the minimum size back from the default 100 to the 5 that I had previously set and I possibly didn't test that the email form was still working. I am sure it was working before I did this though and it may well have been working afterwards, but is not working now.

I am worried that I am running GetSimple 3.2.0 but the documentation for p01-contact says that it is only compatible with GetSimple 3.0. Is this the cause of my problems, but why then did it initially work?

Any thoughts on why it isn't working and how to fix it would be gratefully received.

Thanks,

Phil Tarr (BB Mountaineering Club)

nliautaud commented 7 years ago

Hi Phil ,

As you said, no default address in the admin configuration is not an issue if you specifically define a target in your form markup.

I just tried with a fresh install of GS 3.3.13 & the last state of p01-contact, with the syntax you're using and didn't get any issue.

I recommend you to (in order) :

Best

tarrp commented 7 years ago

Thanks Nicolas,

I was half expecting no reply. As you say it is a long time since you wrote the code and you might not have wanted to offer any support whatsoever.

Thanks for your advice. I will do as you suggest in that order.

I have already double checked the email address and tried other email addresses like the one I am using here.

I have also reinstalled 01-Contract.

Hadn't thought about conflicts with other plugins, but will try with each of them disabled.

I was worried about upgrading GS to 3.3 as your plugin said it was only supported by 3.0 and I don't know whether other plugins would continue to work.

Did the diagnostics I sent you show up anything?

Thanks again for your advice.

Regards,

Phil

On 15 Dec 2016, at 23:05, Nicolas Liautaud notifications@github.com wrote:

Hi Phil ,

As you said, no default address in the admin configuration is not an issue if you specifically define a target in your form markup.

I just tried with a fresh install of GS 3.3.13 & the last state of p01-contact, with the syntax you're using and didn't get any issue.

I recommend you to (in order) :

check twice the address you defined in code, or try without (you shouldn't need to write php if you're not making specific behaviors, as parameters can be set trough the admin panel and/or form syntaxes) disable other plugins, to see if there is any conflict reinstall the last version of p01-contact from here update to the last version of GS (backup everything first) Best

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

nliautaud commented 7 years ago

Hi Phil,

I didn't see anything strange in the debug you sent me, and cannot reproduce the issue here, so we'll have to see with the outcome of the checklist.

Don't forget to try removing any PHP code related to p01-contact you written yourself, as you mentioned above, and to use the plugin downloaded from Github (as this is what I've tested with success).