Contact Form icon

Contact Form

Maintained by Michael Milette
Contact Form is a Moodle plugin that allows your site to process and send information submitted through HTML web forms to the site's support email address or primary administrator if the support email address is not defined.
Price option: Free

Supports Moodle 3.0-5.2 See all versions
Latest release: 2 months ago
Installations: 4867
Downloads (last 90 days): 760

Frankenstyle name: local_contact
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hi Michael, I can't believe I found the perfect contact form for my moodle website. I am really impressed with how simple it is. I am having an issue with the submit button in the theme I am using, I have contacted the support team for the theme but my support is out of date, I have renewed it a few times and am broke at the moment so I can't really afford to renew it to ask this question. I seem to have found the settings for the submit button but when I change them it has no effect on the look of the button to the front end user. I have cleared caches on browser but it just doesn't seem to be changing anything. Is there any work around for me? All the contact form templates uses the Submit button so it seems there's no way of getting around using it. Thanks again for an amazing plugin!
I just ran some tests and determined that emails are sent regardless of whether the user is logged-in or not. I will continue to investigate but will only post updates to https://github.com/michael-milette/moodle-local_contact/issues/62 .
Hi Charles, thank you for your feedback. I am actually grateful for your comments. You see, I recently experienced the same issue with the Multi-Factor Authentication plugin. Emails were delivered correctly for admin accounts but not for teacher account. I didn't investigate further but didn't realize that it might also happening with Contact Form. I will definitely look into it and figure it out now that I know the issue is affecting more than one plugin including my own.
If you or anyone else would like to be notified about updates on this issue, please leave a comment on the following ticket:
https://github.com/michael-milette/moodle-local_contact/issues/62
I have implemented Contact Form in Moodle 3.9. It was easy to install and set up and is working well. The only problem is that emails are only being sent if the person using the form has administrator access to Moodle. For teachers, students, guests and non-logged-in users everything appears to work but the email never arrives. I am at a loss as to where to look and I suspect it may be related to some other setting outside Contact Form. Any suggestions?
Hi Michael
Yes found the info most useful and helpful, after revisiting the language customisation again managed to find the string and changed the wording as required.
We will have to live with the yyyy/mm/dd date format as the form works very well for our needs and hope the users remember to book the dates correctly when the email comes through the system.
Again Many Thanks for the help.
Regards
Steve
No worries Steve. Hope you found the information useful. Advantages of posting in the forums is that you can get answers from more people who may come up with ideas I haven't even thought of. People also post screenshots which can be helpful to understand instructions. Anyway, I appreciate your comments and will include instructions on how to customize these strings in a future release of Contact for Moodle.
Hi Michael
Sorry if I posted in the wrong place, I just thought that since other questions had been asked here and it was directly related to this pluging that this was the best place to post any problems, again sorry for that.
I understand that the html code defacto is in the yyyy-mm-dd format but as in the link you posted the output is in uk format as 22/07/2018. On our website on the form it shows dd/mm/yyyy and thought it is something that might have been able to change within the plugin for the displayed output but if that is not the case I understand and will have to live with that.
On the message, I did have a look at the customisation prior to posting but didn't come across it so must have been using the wrong search strings or in the wrong place I guess and will have another look into that one.
Having said all that I appreciate the help you have given, many thanks for that.
Regards
Steve
Hi Steve,
Please ask your questions in the discussion forum. A link called "Discussion" is provided on the plugin's page.
For the date format of the date returned by the HTML date picker, it cannot be changed. It is actually an ISO standard format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
The confirmation title, errors and messages are Moodle language strings. Like most strings in Moodle, you can modify it using the Moodle Language editor. Look for the strings associated with the local_contact plugin. For more information on using the language editor, see "Language customisation - MoodleDocs" https://docs.moodle.org/en/Language_customisation
Again, please use the discussion forum for any further questions.
Best regards,
Michael
Hi
I have the plugin working great as a contact form but have also modified some fields in a second form to look similar to a booking form by changing the html and rather than having to type dates in have used some date pickers in the format dd-mm-yyyy, this also works well but despite everything on site being in english (en), the output in the sent email is in yyyy-mm-dd us format, is there anyway to edit/change the output to match the input ?
Secondly I have seen it in th wiki pages and these comments that the confirmation message can be changed but not can't see how / where to do that, can ou point me in the right direction to change the message ?
Many Thanks for any help.
Steve
Thank you, Michael. I think it's the php version that we used (5.4). I ended up deleted the plugin from the server and everything worked.
Hi RA, I am not sure why Contact Form would cause this problem as it does not use json. However I have seen this problem when running older versions of Moodle on Windows but it is unrelated to the plugin. If you think it is related, you could simply delete the /local/contact directory.
Hi,
After installing this plugin to our Moodle version 3.0+ using PHP 5.4, I am not able to go back to site administration. I got the following error
JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Is there a way to resolve this? The clients do not want to upgrade their Moodle version.
Thank you
If you want help, please move this discussion to the discussion forum. https://moodle.org/mod/forum/discuss.php?d=352851
Gmail works as an outbound mail server in Moodle, but not with this plugin.
I have created a mydomain@gmail.com account to use for outbound email on Moodle. This works on Moodle, I have ran the outbound mail test, and I have tested student self registration. I have done these tests multiple times, it always works.
But it does not work when using this plugin. I have put echo statements in sendmail.php to make sure that sendmail.php is being called correctly, and that all the information is correct. But the message is never sent to the mydomain@gmail.com account.
<?php
$email=$_POST['email'];
echo "email $email";
$subject=$_POST['subject'];
echo "subject $subject";
$message=$_POST['message'];
echo "message $message";
mail("mydomain@gmail.com", $email ,$subject, $message);
?>
You are very welcome Blair and cyber sec. Have a great weekend!