WP Mail Tester

August 29, 2007

I wrote a development-use handy plugin for repeated test of sending mail function of WordPress, i.e. wp_mail(). You can directly specify four parameter values for wp_mail(), To, Subject, Message Body and Headers and send it in control panel.

Download and Installation

  1. Download zip file and unzip it.
  2. Upload wp-mail-tester.php to the plugins directory.
  3. Activate WP Mail Tester.

Usage

Open admin menu [Manage] – [WP Mail Tester], input the fields and click Send.

This is only for development-use. Do not use it as an usual mailer.

日本語/Japanese

WordPress のメール送信関数(wp_mail())を繰り返しテストする際に便利な開発用途専用のプラグインを作成したので公開します。これを使うことで管理画面から wp_mail() の引数(送信先、件名、本文、追加のヘッダ)を直接指定して送信することができます。

ダウンロードとインストール

  1. zip ファイルをダウンロードして展開します。
  2. wp-mail-tester.php をプラグインのディレクトリにアップロードします。
  3. WP Mail Tester を有効化して完了。

使い方

管理画面から [Manage] – [WP Mail Tester] のメニューを開き、各項目に適宜入力して Send をクリックするとメールが送信されます。

このプラグインは開発用途専用です。通常のメール送信のために使わないでください。

Contact Form 7 1.3

August 26, 2007

Contact Form 7 1.3 is now available. I added new type of form element tag named [select]. This tag is replaced by a <select> element.

Example: [select your-country "China" "India" "other"]

This tag is replaced to:

<select name="your-country">
  <option value="China">China</option>
  <option value="India">India</option>
  <option value="other">other</option>
</select>

Then you can insert user selection into mail sent to you as other type of tags.

And I rethought the condition when contact form is displayed. In early release, you see the forms only on singular post pages and only one form is replaced on one page. Now, you have no limit. You can put multiple forms into a post and you’ll see them even on archive or home page.

As written on previous anouncement, syntax of form content tag has changed. On this release I completely removed old syntax with label. So if you are an upgrading user from older versions, please check the tags or create new contact forms.

Update (8/26): I fixed a critical bug failing to load jQuery and released it as 1.3.1. This time really Ajax.

日本語 / Japanese

Contact Form 7 1.3 をリリースしました。新しく [select] タグが追加され、このタグは <select> 要素により置換されます。

例: [select your-country "中国" "インド" "その他"]

このタグは次の HTML に置換されます:

<select name="your-country">
  <option value="中国">中国</option>
  <option value="インド">インド</option>
  <option value="その他">その他</option>
</select>

他のタイプのタグと同様に、ユーザが選択した値をメールの内容に埋め込むことができます。

それから、コンタクトフォームが表示される条件について見直しを行いました。以前のバージョンでは、フォームは単一の記事の表示ページに限り表示され、またひとつの記事につきひとつのフォームしか表示しないという制限がかけられていました。このバージョンではそれらの制約をすべて取り払い、ひとつの記事に複数のフォームを表示させたり、またアーカイブページやトップページでも表示するように変更しました。

また、前回のアナウンスにも書いたとおり、フォームの内容で使われるタグの構文が変更されています。このバージョンでは古いラベルつきの構文のサポートを廃止にしました。そのためもし以前のバージョンからアップグレードされるのであれば、タグを書き換えるか、または新しいフォームをこのバージョンで作成してください。

更新 (8/26): jQuery のインポートをしない重大なバグを修正して 1.3.1 としてリリースしました。今度こそ Ajax が使えます。

Contact Form 7 1.2

August 16, 2007

Contact Form 7 1.2 is now available. A main feature of this version is introduction of jQuery Form Plugin. Due to this, we could replace the input validation process to client side and use AJAX posting. While we lost compatibility with old version WordPress. New supported WordPress version is 2.2 or higher. I’m sorry if you have to continue using old one.

The syntax of form content tag got a bit changed. Typical tag of old version was like this:

[text* your-name "Your name"]

New syntax is simpler:

[text* your-name]

The last “Your name” was label used only in validation error messages. Now we replaced validation error into new popup tip next to the respective fields and label is no longer necessary. So we simplified the syntax. You don’t have to change your existing tags because it is backward compatible.

Update (8/17): Notice: In the next version, this backward compatibility might be away. It is recommended for you to edit old tag suit to new syntax.

I’m planning to release next version soon.

日本語 / Japanese

Contact Form 7 のバージョン 1.2 をリリースしました。今回の目玉は jQuery Form Plugin の導入です。これにより入力検証の処理をクライアント側にもっていくことができ、また AJAX を利用した動的な送信が可能になりました。その一方で古いバージョンの WordPress への対応ができなくなりました。新しい対応バージョンは WordPress 2.2 以上です。古い WordPress をお使いの方、ごめんなさい。

フォームの内容で使うタグの構文が少しだけ変わります。古い構文のタグはこんな感じでしたが:

[text* your-name "お名前"]

新しいタグはもっとシンプルです:

[text* your-name]

最後の “お名前” という部分は入力検証のエラーメッセージのなかでのみ使われるラベルだったのですが、今回の新バージョンではエラーメッセージを個々のフィールドのとなりに表示するポップアップに移動させたので、これらのラベルは不要になりました。なお、古い構文のタグは書き変えなくてもそのまま使えるように互換性を持たせています。

更新 (8/17): 注意: この後方互換性についてですが、次のバージョンからは廃止されるかもしれません。古いタグは新しい構文に合わせて書き換えられることをおすすめします。

次のバージョンももうすぐ出る予定です。