Toms Welt


Tiny Contact Form

548 Kommentare | Kommentar schreiben

Ein ganz einfaches und kleines Kontaktformular.

Einfach in den Einstellungen die Empfänger-Email-Adresse angeben und den Shortcode (siehe readme.txt) an den gewünschten Stellen eintragen. Fertig.

Download bei WordPress

Tiny Contact Form 0.7

Contributors: Tom Braider
Tags: email, mail, contact, form
Donate link:
Requires at least: 2.8
Tested up to: 4.6
Stable tag: 0.7

Little form that allows site visitors to contact you by email.


Use [TINY-CONTACT-FORM] within any post or page.
Add the widget to your sidebar.


  1. unzip plugin directory into the /wp-content/plugins/ directory
  2. activate the plugin through the Plugins menu in WordPress
  3. check the settings (email, messages, style) in backend
  4. insert [TINY-CONTACT-FORM] in your page or/and add the widget to your sidebar
  5. without widgets use this code to insert the form in your sidebar.
<?php echo do_shortcode("[TINY-CONTACT-FORM]"); ?>
<?php global $tiny_contact_form; if (isset($tiny_contact_form)) echo $tiny_contact_form->showForm(); ?>

Frequently Asked Questions

How to style?

  • The complete form is surrounded by a div class="contactform". Tags in FORM: LABEL, INPUT and TEXTAREA.
  • To change the form style in your sidebar you can use .widget .contactform (plus tags above) in your template style.css.
  • Since v0.3 you can use the settings.

Need Help? Find Bug?

read and write comments on plugin page


  1.">" title="1. contact form on page" />
    1. contact form on page
  2.">" title="2. contact form widget in sidebar" />
    2. contact form widget in sidebar
  3.">" title="3. settings page" />
    3. settings page

Arbitrary section



  • new language: Turkish, thanks to Emrullah Tahir Ekmekçi
  • new language: Dutch, thanks to Erik Collou
  • new language: Arabic, thanks to qasem
  • language update: Italian, thanks to Alberto Scocco


  • new: multi widgets with different receivers
  • new: 5 additional fields (e.g. website, phone) possible
  • new: to hide form after submit is your choice now
  • new: alternative "question answer captcha"
  • new language: Swedish, thanks to Thomas
  • some bugfixes


  • new: set reciever and subject in shortcode [TINY-CONTACT-FORM to="abc@def.hi" suject="Hello"]
  • new: get subject from url like ?subject=Hello
  • now name and email of the writer are the default "From" data if non "From" given on options page


  • new translation: hebrew, thanks Sahar Ben-Attar


  • Bugfix: referer on pages with more post was wrong
  • Bugfix: PHP4 compatibility, "static" before function deleted
  • new translation: Danish, thanks to Jonas Thomsen


  • new: optional captcha
  • new: referer (page the mail was sent) in mail
  • new translation: France, thanks to Jef Blog


  • Bugfix: little change in stylesheet to realy hide the "hidden" fields


  • Bugfix: little change in spam check


  • new translation: Belorussian, thanks to Marcis Gasuns


  • new: custom widget title and submit button


  • new translation: hungarian, thanks MaXX


  • new translation: espanol, thanks Jeffrey


  • new translations: hr and italiano, thanks Alen


  • new: more user settings
  • new: language support (english, german)
  • change to wp_mail()


  • new: sidebar widget to easy add the form to the sidebar


  • first release
created by Readme Parser

Zu guter letzt ein Style-Sheet Beispiel. Wird ja oft genug danach gefragt.

/* field names */
 .contactform label { display:block; }
 /* fields */
 .contactform input { display:block; width:400px; border:1px blue solid; }
 /* message area */
 .contactform textarea { display:block; width:400px; height:200px; }
 /* ok message */
 .contactform_respons { display:block; color:green; font-weight:bold; border: 2px green solid; padding:10px; }
 /* error message */
 .contactform_error { display:block; color:red; font-weight:bold; border: 2px red solid; padding:10px; }
 /* smaller widget form */
 .widget .contactform { width:200px; }
 .widget .contactform input { width:98%; }
 .widget .contactform textarea { width:98%; height:100px; }

RSS-Feed 548 Kommentare

Seiten: « 1 2 3 4 5 6 7 8 9 10 ... 21 22 23 »
  1. Josh Josh sagt:


    one question ... how to reset / clear form inputs after sending the form
    somewhere at the lines 84-86 :

    if ( mail( $to, $subject, $fullmsg, $headers ) )
        $result = 'Thank you for the message!';

    thanks in advance ...

    • Tom Tom sagt:

      You can simple reload the page or click another one. u1F609.svgz
      Otherwise you can change the code (your selected lines) to

      if ( mail( $to, $subject, $fullmsg, $headers ) )
          $result = 'Thank you for the message!';
          $_POST['tcf_sender'] = '';
          $_POST['tcf_email'] = '';
          $_POST['tcf_subject'] = '';
          $_POST['tcf_msg'] = '';

      This resets the post fields.

  2. Josh Josh sagt:

    Thanks, that was quick ...
    addition I made is to change from headers :
    // send mail
    $from = $_POST['tcf_email'];
    $to = get_option('tcf_to_email');

    meaning not using from admin email:
    $from = get_option('admin_email');

    this way we can simply reply to the message as from headers will be: tcf_sender and tcf_email

    Thanks again for the plugin u1F603.svgz

    • Tom Tom sagt:

      The right email is in "Reply-To" header so you can click "answer" in your mail client. u1F609.svgz
      I have used the admin email for "from" because some servers only allow its own email accounts to send mails. So i think user emails would not send. In next version i will try to use the wp-mail function.

  3. Brendan Ryan Brendan Ryan sagt:


    Nice plug-in...fruitcake! u1F60A.svgz

    maybe its me I don't get it.

  4. Ian Ian sagt:

    Love the plugin.

    One of my questions was already entered in the comments about clearing what was input.

    My other question is this.

    Is there a better way to show that the message has been sent. I am getting people who are sending me the same email 3 or 4x because they are unsure if the message got through.

  5. Jay Jay sagt:

    Thank you for your fantastic and fantastically simple plugin. I thought you might be interested to hear about my modification of your plugin. I've added two more options in the settings page for the plugin. One allows the user to specify an e-mail confirmation message. The second option is a textarea that allows the user to include whatever CSS they would use to style the contact form (this way the CSS is independent of the theme).

    I've also changed the plugin so that the contact form disappears after it successfully sends an e-mail. If you're interested in it at all, you can see my modification at work at . Also, I would be happy to share my modified code with you.

    • Tom Tom sagt:

      Hello Jay,

      thanks for your responce. "disappear the form" is a nice idea.
      CSS i don't included intentionally to size down and speed up the plugin (TINY contact form u1F609.svgz ). The "CSS textarea" is another great idea.
      Thanks! I will use you work. u1F601.svgz

  6. Mark Mark sagt:

    Do I have to insert my email address in somewhere?

    I've installed the plug-in and activated it and it's showing nicely on my sidebar but when I test it I'm not receiving the message?

  7. Ian Ian sagt:

    The new version is breaking the backend of my wordpress. When I would publish a post, it will publish but it goes to a blank screen.

  8. Ian Ian sagt:

    I did the auto update, then I tried using ftp . The backend of WP worked fine when I deactivated the plug-in. I've since reverted back to 0.2 version of the plugin.

  9. Ian Ian sagt:

    And strangely enough it's working again after upgrading this time.

  10. Alen Alen sagt:

    Hi ! I found your lovely plugin u1F44D.svgz , and I translated in into my language ( croatian, do you want the translation ). But I have problem -- it's not sending any mail, that is, the mail doesn't arrive and iI get error message ... u1F44E.svgz
    I'm newbie in WordPress and PHP generally, so could you tell me how to set options to get success with email sending ... u1F64F.svgz

    • Tom Tom sagt:

      Hi Alen,
      if you see the error message wp_mail() has failed. Do you get other wordpress emails like comments?
      In the plugin options you have to set the TO email. If FROM email (optional) is empty the admin email will be used.

Seiten: « 1 2 3 4 5 6 7 8 9 10 ... 21 22 23 »

Kommentar schreiben

Deine E-Mail-Adresse wird nicht veröffentlicht.

:mrgreen:  :D  :)  ;)  8-)  :O  :cry:  :(  :liebhab:  :-x  :-?  :P  :roll:  :arrow:  :schwitz:  :thumbsup:  :thumbup:  :thumbdown:  :facepalm:  :?:  :!:  :eis: