サンプルのため動作しません

グリーティングカードの送り方。
このグリーティングカードは、個々の手順に従い簡単に送ることが出来ます。 あなたは、受領者に対しディレクトリにカードが記憶されていることを 伝え、受領者はそのカードの場所を知ることができるのです。

カードが完成した後に、プレビューが表示されます。 もしカードが好みでないならばそれを編集してから送ることや、やり直しをすることができます。 その後、受領者はどこでカードを見れるのかEメールで通知を受け取ることになります。

ステップ #1:写真を選んでください。
下のリストからラジオボタンを使って写真を選んでください。 1つのカードに対し1枚だけ写真を選ぶことができます。 もし写真のイメージを見たいなら画像をクリックしてください。 フォームに情報を書き終える前に画像を見たとしても、 イメージを見ることから戻ったときに記入内容を失う恐れはありません。

The Luck 'O the Irish Bignosebird
Once thought limited only to the warmest climes, our ever diligent search teams found this specimen with a pot of gold. Here is the bird. The gold is gone and so is the search team... Wish your friends the best of Irish luck with this prized card. It is said that if you bend over backwards and kiss the screen while this bird is displayed, you too will have everlasting luck. You also will have lip marks on your monitor, which could seriously worry your spouse and/or co-workers.
The Long Stem Bignosebird
Nothing expresses love and affection better than a fresh picked Long Stem Bignosebird. Our's are hand harvested from the garden daily. Let that special person know you care enough to send them only the finest.
The Feel Better Bignosebird
Have a friend or loved one a bit under the weather? Sometimes it just takes a little perspective to perk people up. Let the patient know that they are in much better shape than this former member of our aerobatics team.
The Birthday Bignosebird
Do you know somebody who has a birthday coming up? Our Birthday Bignosebird with hat and cake makes just the perfect gift. Priced right too! Tight for time? No problem. Your gift will arrive in just minutes anyplace on Earth.
The New Baby BignoseBird
Here is the perfect choice for a friend or family member that has recently added to their nest. This museum quality print will surely become their wallpaper image for generations to come.
The Santa BigNoseBird
Why head for the mall this year? Do you have that special somebody that is hard to shop for? You checked your list and are not quite sure where they are on the lump of coal to Rolex watch continuum. Well, this card is just the right virual stocking stuffer. When printed, it makes the ideal tree ornament.
The Festival of BigNoseBirds
Oy veh ist mir! Eight nights of festivities and gift giving. It sort of makes shopping just worse than doing it in dog years. This finely crafted menorah will be cherished by those that receive it. Any idea how hard it was to pose all those birds?
*NOT UL certified. Keep away from flame.
The Holiday Dinner Bignosebird
Turkey again? No way! Break from tradition this year and send the Holiday Dinner Bignosebird. Each bird is guaranteed fresh from our farm to your dear friend's screen. Recipes not included.

ステップ#2:名前とEメール情報
下のボックスに、受領者の名前と電子メールアドレスを入力してください。

受領者のメールアドレスに間違いが無いか確かめて下さい!
Your Name:
Your E-Mail Address:
Recipient's Name:
Recipient's E-Mail Address:

ステップ#3:テキストとバックグラウンド色を選んでください
下の2つのプルダウンメニューを使って、テキストとバックグラウンド色を選んでください。 このスクリプトは、両方に同じ色を設定しているかどうかをチェックできません。 従って、受領者にカードを読みやすくするために別々の色を選んでください!

TEXT COLOR BACKGROUND

ステップ#4:タイトルとメッセージを入れてください
下のボックスには、メッセージを入れてください。 簡単なHTMLを用いて表現することも可能です。

Card Title
Your Message

ステップ#5:カードに署名してください
カードにどのような署名をしたいか入力して下さい。
下記は例です:
  • Love, Snookums
  • Best Wishes, Fred
  • Me!

ステップ#6:曲を選んでください。
曲を選択をするか、または No Music Selected のままこのステップを省略することが出来ます。

ステップ#7:プレビューを見るか、やり直すか選んでください。
カードをプレビューする用意ができました。 プレビューするには下のPREVIEWボタンをクリックしてください。 もし、フォームをクリアして再び作り直したいのならSTART-OVERを選んでください。 カードは、プレビュー画面でSEND-CARDボタンを押すまでは送られません。


グリーティングカードのファイルの保存場所
・card.cgi: /www/yourdomain/cgi-bin
・カードファイル,画像,音楽,logファイル: /www/yourdomain/cards

画像,音楽ファイルの変更方法
・画像部分の変更、追加
赤字の部分をご自分の用意した画像に変更、又は追加等して下さい。

・BGM部分の変更、追加

OPTION VALUE="" を用意した音楽ファイルに変更、追加して下さい。

cards.cgi の変更部分
○あなたの設定を満たすよう、下記に示す個々の部分を修正してください。
○システムに依存しているSMTPまたはSEND-MAILを使ってください。

@okaydomains=("");
…okaydomains を指定することにより、指定ドメインからのみスクリプトが実行されるようになります。 もし空のままにしておき、他の誰かがスクリプトを実行したとしても、 グラフィックを見ることは出来ません!!
※www.domain nameとdomain name どちらも指定してください!

$DAYS=11;
…カードを除去するまでの保持日数です。

#$SMTP_SERVER="localhost";
$SEND_MAIL="/usr/sbin/sendmail -t";
SMTP_SERVERは、sendmail gateway localhost がシステムに作用するために 動作しているシステムの名前です。
もしなければ、SEND_MAIL変数がセットされます!

$BASEDIR="/www/yourdomain/cards";
…グリーティングカードが蓄えられるUNIXディレクトリを指定します。
※画像や音楽ファイルも一緒のファイルに置いてください。

$BASEURL="http://yourdomain/cards";
…カードが蓄えられるディレクトリのURL(httpアドレス)を指定します。

$SITEURL="http://yourdomain/";
…貴方のホームページのURLを記入してください。

$SITENAME="タイトル";
…貴方のサイトのタイトル名を記入します。

$EXT=".html";
…カードファイルの拡張子です。
※決して.shtmlは使わないで下さい。

$PROGNAME="/cgi-bin/card.cgi";
…このcard.cgiスクリプトのある位置を指定します。

$MAILLOG="maillog";
…logファイルよりセキュリティ動機のあるE-mailAdressを発見でます。
※このファイルには新しく名前をつけて下さい!!

$SUBJECT ="You have a virtual card waiting for you!";
…カードの案内メールの件名を決定できます。
※日本語で件名を付けたい場合は、コード変換をして下さい!


送信メールのメッセージ変更
…card.cgi中の108行目の $msgtext =<<__STOP_OF_MESSAGE__;から
120行目の __STOP_OF_MESSAGE__までの間を変更してください。