Form Block not working
After a few months of happily running several c5 sites I have recently come across problems with the form block on two different sites.
1) One c5 site which is hosted on a on-site server seems to not be emailing forms at all. It saved all form entries into the database and can be exported into excel files, etc. But it does not send emails out. I have tried creating new pages with new forms... etc, ... nothing is sending. Is there something i need to be aware of, maybe something not installed properly on the server?
2) Another c5 site which I am running, when sending emails after every form submission, contains the same email address in the "from" section. Wondering how I can change this?
If anyone has any ideas I would appreciate it. Thanks!
also a possibility is that you're sending mail to an address at the same server, and if that domain is setup to have a MX record pointing elsewhere the webserver may not know that it isn't also the mail server.
2) the form block never did this. there's no custom attribute of "email" type for the form, so there's no way the form would know which field is an email vs. which field is a phone number or whatever.
1) I have checked and the forgotten password utility is not sending emails either. How should I go about re-configuring mail?
2) And perhaps I am confusing you, simply put I would just like to change the "sender" of emails that are sent from the site... currently it just so happens to be my email address. Maybe this is something that can't be changed?
Thanks for all your help.
your server may not have the php sendmail function, you will have to configure a SMTP server you can use google apps if you don't have one but your hoster should.
and for number it can be changed with a bit of hacking in version 5.4 it will be a lot easier
Thanks for your help
Any news on what may have happened? They assure me that they haven't changed anything on the forms.
As it turns out, the php mail() function was not working on their server. It was a few years ago when we tried to sort it out, but using a combination of phpinfo() and manually testing mail() functions allowed us to see pretty quickly that it wasn't a c5 problem and was a php setup/configuration problem.
I know this isn't the answer you wanted to hear, but I hope this helps!
I found on another thread that the default mail to is nobody or 0 and I'm wondering if the secure certificate won't allow the form to sent to 0? That's just off the top of my head and I could be way off base.
I have no clue what the issue would be other than it may have something to do with the installation of the SSL certificate onto the server possibly?
EDIT: I checked the Messages log on the server and found this:
Jan 12 09:59:21 localhost setroubleshoot: SELinux is preventing the sendmail from using potentially mislabeled files. For complete SELinux messages. run sealert -l 3ce5a......