Categories
Announcement WordPress Plugins

Contact Form 7 1.9.1

Happy New Year! I have just released Contact Form 7 1.9.1 and this version includes support of pipe notation, little bug fixes and translation updates.

Pipe Support

Imagine that you are a webmaster of a company and you need a contact form on your site which will allow the sender to select an email recipient. Let’s say that the options are the CEO of the company (ceo@example.com), the sales department (sales@example.com) and the support department (support@example.com).

You’ve been able to achieve this in the past with Contact Form 7 in this way: first, make a drop-down menu or radio button for the selection (you can do this by inserting a form tag such as:

[select recipient "ceo@example.com" "sales@example.com" "support@example.com"]

into the form template); second, enter a corresponding mail tag ‘[recipient]‘ into the ‘To:‘ field. This ensures that the email is sent to the specific address that the sender selected.

However, there has been a problem with this. By using this procedure, the email addresses are revealed over the Internet and this is not good. These addresses could then become targets of evil spammers very quickly.

So, what you need is a way to allow senders to select from closed data safely. The pipe (‘|’) support is just for this very purpose.

Change the form tag of drop-down menu to:

[select recipient "CEO|ceo@example.com" "Sales|sales@example.com" "Support|support@example.com"]

If you insert a pipe (‘|’) character in the middle of the option value, only the part before the pipe will be open to the outside, and the part after the pipe will be used for mail replacement.

Pipe sample image

You can use this pipe only in the drop-down menu values, radio buttons or checkboxes. If you don’t like this feature, you may define the constant WPCF7_USE_PIPE as false to disable it.

Translation Updates

New additions:

Updated:

Thank you very much!

Categories
WordPress Plugins WordPress Tips

File uploading and attachment with Contact Form 7

In this post, I will explain the file uploading and attachment feature introduced in Contact Form 7 1.9. If you are not familiar with Contact Form 7, please read the plugin homepage and FAQ first.

Summary

With this feature, you can allow your visitors to upload their files via your form, and then an email with attachments of the files is sent to you.

Please note that this feature uses the API of WordPress 2.7. So, in order to use it, you will need to upgrade your WordPress if you are using WordPress 2.6.x or older.

To set up, two steps are needed: 1) Add file uploading fields in your form, 2) Set up your mail settings to attach the uploaded files. The two steps will be explained in the rest of this post.

Adding file uploading fields in your form

Like other types of form fields, you add a tag code into the Form area in the Contact Form 7 admin panel (Tools > Contact Form 7 in WordPress 2.7).

The tag of file upload feild is like this:

[file your-file]

As with other types of tags, ‘file’ means the type of tag, and ‘your-file’ means the name of the tag.

You can use several options with ‘file’ typed tags. To limit the max file size, use the ‘limit:’ option like this:

[file your-file limit:100000]

The unit of the digits is ‘byte.’ So ‘limit: 100000’ means that the limited max file size is approximately 100 kB.

To limit acceptable file types, use ‘filetypes’ option like this:

[file your-file filetypes:gif|png|jpg|jpeg]

List the file extensions after ‘filetypes,’ and separate them with ‘|’
(pipe) character when you set multiple file types.

You can also generate these tags with the Tag Generator, of course.

Tag generator for file

Set up file attachments with a mail

For file attachments, the new field File attachments is added in the Mail field set in the Contact Form 7 admin panel. To attach the uploaded files to the mail, put tags into this field as shown below.

File attachments:
[your-file]

As other tags used in the Mail field set, only the name (in this case, ‘your-file’) is needed. Don’t put the tag’s type or options.

file attachment to mail

If you have multiple files uploaded and want to attach them into an email, simply line them up like this:

File attachments:
[your-file][your-another-file]


Categories
Announcement WordPress Plugins

Contact Form 7 1.9

Contact Form 7 1.9 is now available!

Required WordPress version changed

New required version is WordPress 2.5 or greater. This change is needed because Contact Form 7 1.9 uses the Shortcode API which is introduced in WordPress 2.5. Using the Shortcode API allows you to redece the possibility of conflicts with other plugins.

New admin panel design compatible with WordPress 2.7

In WordPress 2.7, you can find the admin panel of Contact Form 7 under the Tools menu. Basic usage has not been changed, but it has been improved to be comparable with the new elegant admin interface of WordPress 2.7.

Contact Form 7 new admin panel

File uploading and attachment support

To explain this new feature in detail, I will need an extra post. Briefly, however, you can allow your visitors to upload their files, and then an email with an attachment of that file is sent to you. To use this feature, you need WordPress 2.7 or greater.

HTML mail support

This allows you to receive HTML formatted mail with text/html content type. If you need HTML mail, simply check the “Use HTML content type” option in the Mail fields, and then write in the Message Body text area with HTML tags.

Arabic translation

Arabic translation has been newly added. Quite amazingly, two people from other countries sent me this add-in within a very short period of time. To respect them fairly and equally, I’ll publish this, giving credit to both: Tarek Chaaban and Muhammed Lardi. Thank you very much.


Categories
Announcement WordPress Plugins

Contact Form 7 1.8.1.1

Contact Form 7 1.8.1.1 has been released. It’s including Hebrew translation by Yaron Ofer and Ukrainian translation by Andrey Kovba.

Contact Form 7 1.8.1

Contact Form 7 1.8.1.1 をリリースしています。Yaron Ofer さんのヘブライ語の言語ファイルと Andrey Kovba さんのウクライナ語の言語ファイルをパッケージに追加しています。

Categories
Announcement WordPress Plugins

Contact Form 7 1.8.1

Contact Form 7 1.8.1 is now available.

This version is compatible with the new admin interface of WordPress 2.7, so if you are trying the beta release of WordPress 2.7, I recommend you update soon to get the full benefit. WordPress 2.7 has introduced a new admin menu structure, and you can find the Contact Form 7 sub-menu under the Tools menu.

Other improvements:

  • Editable messages

    Now you can edit response messages exactly as you like. Find the Messages section at the bottom of the contact form setting page. You can also set messages per contact form unit.

  • Editable messages screenshot

  • New tag [wpcf7.remote_ip]

    If you want to know where the message has been sent from, you can use the newly introduced [wpcf7.remote_ip] tag. Put this special tag in your mail template (generally in the mail body), and it will be replaced by the sender’s client IP address. Please note, however, this can only be used in mail templates and not in forms.

  • Albanian translation

    Albanian translation by Olgi Zenullari has been added. This means that Contact Form 7 has now been translated into 29 languages.

Categories
Announcement WordPress Plugins

Contact Form 7 1.8.0.4

I released Contact Form 7 1.8.0.4. This update includes a few bug fixes and four newly added translations.

Thank you so much!

My developing of Contact Form 7 1.8.1 is late. I’m planning to release it in the beginning of next month.


Testing PollDaddy. Give it a try!


(Japanese)

Contact Form 7 1.8.0.4 をリリースしました。いくつかのバグフィックスに加え、インドネシア語、ギリシャ語、ペルシャ語、スロベニア語の各言語ファイルが新たに追加されています。

Contact Form 7 1.8.1 の開発が遅れています。来月の上旬までにはリリースする予定です。

Categories
Changesets

wp_mail() にファイル添付のサポートが追加

開発バージョンの WordPress に取り入れられた変更のなかで気になるものをピックアップして紹介していきます。

Changeset 9213 にて取り入れられた変更により、wp_mail() にファイル添付のサポートが追加されました。

WordPress で採用している PHPMailer ライブラリはもともと添付ファイル付きのメール送信をサポートしていましたが、WordPress 側のラッパーである wp_mail() にそれをコントロールする機能がありませんでした。この変更によりこれまでよりシンプルな方法でファイル添付を実現できるようになります。

Contact Form 7 でもファイル送信フォームのサポートについて数多くの要望をいただいていますが、今回の WordPress 本体側でのサポートを受けて WordPress 2.7 以上でのみ利用可能な形での実装を検討しています。

WordPress Trac – Changeset 9213
Add attachment support to wp_mail. Fixes #7787 props AaronCampbell.

Categories
Uncategorized

WordCamp Tokyo の御礼とローカルコミュニティのご提案

昨日(23日)東京・渋谷で開催された WordCamp Tokyo 2008 には多くの方にご参加いただき無事成功裏に終えることが出来ました。参加者・関係者のみなさんに感謝します!

そのときのプレゼンで使った資料を以下の URL で公開しています。

http://docs.google.com/Presentation?id=dcdw45x4_50czj9rbc7

それから、懇親会でお話した福岡のローカルコミュニティサイトの URL はこちらです。

http://fukuoka.wordbench.org/

福岡の WordPress ユーザーのみなさん、ぜひご参加ください!


I had a presentation on WordCamp Tokyo. I spoke about WordPress Plugin Directory and my plugin Contact Form 7. And also proposed starting local area community for Fukuoka (my home town) and other places.

Categories
Announcement WordPress Plugins

Contact Form 7 1.8.0.3

I released Contact Form 7 1.8.0.3. This update includes Hindi translation by Tarun Joshi and Portuguese translation by Hugo Baeta. Thank you very much!


Contact Form 7 1.8.0.3 をリリースしました。今回のアップデートは Tarun Joshi さんによるヒンディー語と Hugo Baeta さんによるポルトガル語の言語ファイルを新たに追加しています。お二人に感謝!

Categories
Uncategorized

WordCamp Tokyo 2008

The first WordCamp in Japan!

みなさん会場でお会いしましょう。