SimpleModal Contact Form (SMCF)


SimpleModal Contact Form (SMCF) is an Ajax powered modal dialog contact form plugin for WordPress.

It is built on the jQuery JavaScript library and uses the jQuery SimpleModal plugin.

Please visit the WordPress SMCF Plugin page to download as well as for information regarding installation, FAQ’s, screenshots, etc.


For SMCF v1.2.2+

Italian (Gianni Diurno)
French (E Neuville, ICS-INFORMATIQUE)
Portuguese (Vitor Borges)
German (Mika)
Polish (Tomek Nowak)

For SMCF v1.2 – v1.2.1

Italian (Gianni Diurno)
German (Nathalie)

281 thoughts on “SimpleModal Contact Form (SMCF)”

  1. Hey Eric – Great plug-in! It works when When I post the link anywhere on my blog, but I’m trying to set it up just like yours (Instead of an actual “contact page” it just opens the form). I am new to wordpress and I have 2.7 installed. I also have a custom theme installed as well. I tried doing it through the header.php file like you had posted earlier but it doesn’t get formatted with the other “Nav” links. I really don’t wanna build a custom nav just to make this work, is there a way to do this from the dashboard?

  2. Hey Eric,

    This is an amazing plug in! Thanks so much for all the work you did. I am using it on our test site and it is working, except that I do not receive the email. It said it sent successfully, I just dont receive anything. I did a bit of researching and it may be caused by an anti spam system that was just installed by our hosting company. They gave us two work arounds. I wanted to see I could use these in the code somewhere, and if so where and how would I do it. Any help you could give would be SO APPRECIATED!

    Work around from host company was to add this (where I have no idea):
    ini_set(โ€™sendmail_fromโ€™, โ€˜user@domain.comโ€™);

    I found a guy who wrote a work around for this specific host company and a similar php mail problem. Again, not sure where I would add this code:

  3. sorry… the last part of the code didnt paste… trying again:


    function ixw_phpmailer_init($php_mailer){
    ini_set('sendmail_from', '');

  4. @Jay – glad you got it working!

    @Dave – Try putting it in scmf_data.php, right after:

    Let me know if that does not work!

  5. (Hmm don’t think my post went thru)

    Eric, you are a star.. I don’t know how you have the patience to help so many people. I hope many donate or you make money somehow from this because you certainly deserve it!

    I had a crude version of modalbox (or facebox rather) working on my site but it didn’t validate data so I thought I would give yours a go. I am getting the server error response even though I know mail() is installed and working on the server. Any ideas? – click ‘contact’ on the signpost.

    Best regards..

  6. @Ryan – sorry, your comments were flagged as spam. I appreciate your kind words ๐Ÿ˜‰

    I just checked your site and it appeared to work…so let me know if you’re still having any problems.

  7. I am running WP 2.7 and I installed your plugin.

    I added a link to one of my posts and when I click the contact form appears. I enter in the info. and click “Send” and I get the error:

    “Uh oh…

    404: Not Found”

    I have the following settings for the plugin (via WordPress):

    Contact Link URL: /contact

    Do I need to have some page (i.e contact.php) available somewhere? if so I haven’t created one. If I do need it where does it go??


  8. great plugin … my favourite contact page ever!!

    i came to try and find out how to add it to the pages menu. the code you provided in the comments worked perfectly.

    love it!! thanks for your hard work.



  9. @Ryan – who knows, but I’m glad it is working now ๐Ÿ˜‰

    @codecraig – that’s a strange one. It looks like it would work without the /dsc at the beginning of the URL, but that is where everything else is coming from. I’d have to know more about how you have WP setup…

    @david – thank you!

  10. I have a main domain ( and digitalchickenscratch points to a directory there, specifically, WP is installed in the “dcs” directory.

  11. Hi Eric! You plugin works on my blog,, nicely. But after configuring the permalink it do not works any more and shows 404 error. Would you tell me how to solve this problem.

  12. @codecraig – that is really strange. I can’t understand why it would load the JS and CSS fine, but then have an issue trying to reach the php page. You’re sure all of the files are in the correct folder?

    @Tanim – It looks like the JS is not working. I was getting a JS error on your site, which probably is what is causing it.

  13. Hi, I’m having problems using scriptaculous and this library… I can get working only one of the functionalities (feature using scriptaculous or the form using this library).

    I am able to run the functionality which uses the library that has been included the last.


  14. @david – the SMCF JavaScript shouldn’t be causing any issues, perhaps it is being caused by something else? Do you have a link I can view?

    @JJ Honeycutt – thank you ๐Ÿ™‚

    @codecraig – so, I finally realized what is going on. It looks like files from are being pulled fine, but anything from is not. It sounds like a configuration issue and unless I can see how you have everything configured, I’m not sure what to tell you. If you’d like to send me some more information via email, perhaps I can help figure out the issue.

  15. First, let me say that I love your plug in and can’t wait to use it. I am using WP2.7 and can’t figure out how to add the class <a href="/contact" class="smcf-link">Contact</a> to the menu with a theme that uses the wp_page_menu to create menus.

    Can you help?

  16. Must be b/c of the domain pointer. Basically digitalchickenscratch points to (which is where WordPress is installed).

    Not sure what to do to fix the plugin or wordpress to handle that

  17. @rgregory – I need to look into that. Thanks for the reminder…

    @codegraig – can we continue this off of the comments, please. Send me an email with the settings you have for WordPress (WordPress URL and Blog URL).

  18. Thanks for looking into it! I have done a fair share of research to try and solve it. Enough to know that no one has published a workable solution and the old way of doing it doesn’t work.

    I found a similar solution where someone was using jQuery to add a class dynamically to a link, but I wasn’t able to change the code to suit this. My java abilities are nil. I think it would be a simple and elegant solution if you were already using jQuery.

    I also found a plug-in page-lists-plus that allows the adding of classes to wp_list_pages, which worked when I changed the code to use the older call up. But this is a clunky solution that requires another plugin and some code hacking. (of course if you were going to change the code, you could get the link class there without the plugin)

    Just thought I would throw this out there, not sure if it’s helpful or not.

  19. @Eric sorry I don’t have any link on the problem, but I have stopped using scriptaculous to enjoy your plugin. Thanks.

  20. @rgregory – sorry for the delay. I’ll need to work something into the actual plugin, but I came up with a temporary solution. In either the SMCF plugin file or your theme’s functions.php file, add the following:

    function smcf_menu_add_class($menu) {
    	$menu_title = "Contact";
    	$find = '/title="'.$menu_title.'"/';
    	$replace = 'title="'.$menu_title.'" class="smcf-link"';
    	return preg_replace($find, $replace, $menu);
    add_filter('wp_page_menu', 'smcf_menu_add_class');

    Just change $menu_title to whatever the title is for your contact page. Let me know if you have any issues.

    @Scott Greskovic – do other browser have the issue? What version of Safari? Do you have a link I can view?

    @david – well, glad you got it working ๐Ÿ˜‰

  21. Hi, Eric. I’ve recently run into a problem, and I hope you can help. If I enable Include “Send me a copy” Option, and the user activates that option in the SMCF, messages will not send. Instead SMCF returns the error “Unfortunately, a server issue prevented delivery of your message.”

    However, as long as the sender CC option isn’t used, the form submits correctly.

    You can see it yourself at Use the e-mail link in the left sidebar under “Quick Connect.”

    Any help would be greatly appreciated. Thank you.

  22. Hi there – okay, you’re dealing with a cyber-dork here, so once you’ve finished rolling around on the floor at my ignorance….

    Installed and activated plugin. Great! Went to config and did that. Greater! My noggin said “go make contact page”. Did that….

    So now what? Went to the WP site and guess what, nothing obvious re installation etc. Ideally I would have liked a little drop down widget-type thingy, but all of them say “not tested on your version” (2.7) so I’m avoiding those. What do I have to do to make the actual form materialise out of the ether and land on the nice little page I made for it??

    I know this is probably soooooo simple, and I apologise in advance – being severely cyber-challenged, most “techi-speak” goes over the top of my head, so keep it sweet and simple, please please…

    Many thanks

  23. My blog was running under a number of subdirectories after the domain, I tried this and got 404 error.
    <a href="/contact" rel="nofollow">Contact</a>

    Used this and it works fine. ๐Ÿ™‚
    <a href="contact" rel="nofollow">Contact</a>

    Maybe it helps someone with 404 error.

  24. @Pariah Burke – that is strange. Have you modified the php files any?

    @Judah Raine – currently SMCF only creates the animated modal contact form that you can see on this page – it does not embed a form into an existing page.

    @Trav – hmm…neither of those should work. SMCF is looking for a specific class to bind the click event to.

    @Scott Greskovic – That is really strange. Unfortunately, I can’t reproduce the error and Safari doesn’t have the developer tools I need to troubleshoot the issue.

  25. @Pariah Burke – in smcf_data.php, you can remove the @ in front of @mail(…) and the actual error message should be displayed. You could also check your web server logs to see if there is any information in there.

  26. Hi sir. Thanks for this great plugin!
    I just want to ask a question about the error in my form. I successfully installed your plugin into my wordpress theme and it went good but there seems to be a problem, when it submits the message the error was this message:

    Strict Standards: Assigning the return value of new by reference is deprecated in /mnt/Target01/334531/ on line 520

    You can check at this site:

    Thanks Eric

  27. Eric, I just got it working, thanks! As a suggestion, how about an option to include in the subject (or just as the subject) something like “A message has been sent from your SMCF” or even let us choose the subject. I have a lot of email running through my inbox, this would help a great deal.

    Keep up the good work! Thanks for being so responsive.

  28. @Archi – that is strange – shouldn’t have anything to do with SMCF. Looks like you may just need to turn off PHP error reporting.

    @rgregory – there’s an option on the configuration page to set the Subject – is that what you mean?

  29. Hey Eric, Thanks for the great work you have done here. I do have a question however. I installed SMCF on the website im currently working on successfully. But what I was looking to do with the form was to succesfully add an Image (something printable) and download link to the final success screen of SMCF. I played around a bit with the javascript success() function and tried to append the HTML that way but this one is over my head because i really dont know enough about javascript to effectively implement this. Is there any way you could help with this!

  30. @Verious Smith III – sure, send me an email with the specifics.

    @Ashish Jha – by compulsory, do you mean required? You’ll just have to modify the HTML to add the * and the JS validation to make sure it is entered.

    @Sergiu – please email me with more information like your site URL and any other info you have.

    @Archi – error reporting for what? All of the errors in SMCF are suppressed.

  31. Does this currently support multiple forms? IE: If I have a request a quote feature on my site yet each quote request form is different?

  32. Hi!

    How can i add the class to a link. I realy dont know and would like to know. I added a link call Contact Us and i dont know hoy to add a class to this link.

  33. Thank you for this great plugin!

    I made a translation, but I’m not sure where to put translated .mo file, and what name should it have… help ๐Ÿ™‚

  34. Sorry … can’t find a js/smcf_javascript.php file, is that now smcf.js? However i couldn’t find a “complete: function” in there.

    I want the box to auto-close after confirming that the message was sent, also i want to remove the “goodbye” message (avoid suggesting user has to leave site after sending a message …)

    Would you mind pointing out the exact location and code-to-be replaced once more? thanks

  35. @mikeD – for something like that, I’d suggest a custom solution using SimpleModal. In that case it would be much easier to do as you want.

    @mg – not sure if I understand exactly what you are asking. In order for SMCF to work, it needs to attach to an element with a class of “smcf-link”. That means, something like: <a href="/contact" class="smcf-link"/>Contact</a>

    @Victor – it just needs to go in the lang folder and should be named according to the following:
    – smcf-
    – ISO 639 language code (lowercase)
    – an underscore
    – ISO 3166-1 alpha-2 country code (uppercase)
    – .mo

    So for an Italian translation, the file name would be

    @Mike – yes, the file was renamed to smcf and the function is now success:. If you want it to auto-close after a short interval without the Goodbye message, you’ll need to do the following:
    – Modify the code as described in a previous comment.
    – In the close: function callback, comment out the following line:

    jQuery('#smcf-container .smcf-title').html(smcf_messages.goodbye);
  36. Very nice plugin. I have localized it for the Danes.

    In the “var smcf_messages” section, you have ‘is’, ‘are’ and ‘required’. This is unfortunate, as not all languages conjugate verbs in the same way. For example, in Danish the required verb form is one single word, not “is required” or “are required”. Of course, if ‘is’ and ‘are’ are only used with the word ‘required’, then it might be easy to fix this problem. If ‘is’ and
    ‘are’ are used as auxiliaries with other main verb forms (but I did not notice that in the po file), then there might be a little more work.

    Anyway, thank you for a fine plugin and for considering this issue!

    The translation will soon be avaible via the following url:

    All the best!

  37. Eric,

    Great Plugin and I did get it working (didnt test email) using the sidebar. I am confused (as a new wordpress user) on how I can add the link without putting it in the sidebar? I really didn’t understand what you mean when you refer to “contact link?”

    What’s the best way, if I can to use your great plugin to simply add a link into my blogrole or something?

  38. Eric, can’t leave it but once again say thank you, also for your responsiveness to all our noob questions. You rock!

Comments are closed.

Scroll to Top