Modified by Tobias Ratschiller : */ /* Place this document and the pictures you want to send in your domain root folder or your user root folder. The thumbnails filename should be equal to he bigger postcard pictures - just put the thumbs in another folder. Change the configuration varialbles below. */ /* your domain */ $domain = "https://www.angelfire.com/co4/paprika"; /* this document filename */ $this_document = "paprika.php"; /* your title */ $title = "Paprika E-cards"; /* The relative url to your thumbnails */ $thumb_relurl ="/co4/paprika/thumbs"; /* The picture shown when people first enter the site */ $default_img = "pic01.jpg"; /* And change the url to the inc-file */ require('/co4/paprika/inc/mimemail.inc'); /* End config. There are some minor things you need to change later but this will get you started */ echo ""; echo ""; echo "$title : $img "; echo ""; echo "
Site hosted by Angelfire.com: Build your free website today!
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "$domain"; echo ""; echo "$title"; echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo "
"; if($submitcybercard) { echo ""; echo ""; echo ""; echo ""; echo "
"; if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]', $tilpost)) { echo "

There is something wrong with the emailadress you submitted. Correct the address and hit 'Send'."; } else { $attachment = fread(fopen("$img", "r"), filesize("$img")); $mail = new mime_mail(); $mail->from = "$frapost"; $mail->to = "$tilpost"; $mail->subject = "$emne"; $mail->body = "This is just a test."; $mail->add_attachment("$attachment", "$img", "image/jpeg"); $mail->send(); echo "Your E-card have been sent to $tilpost."; } echo "
"; } else { if(!$img) { $img ="$default_img"; } echo ""; } echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "
"; echo "


Enter addresses and hit 'Send' to post the image above."; echo "

"; echo ""; echo "
"; echo "To "; echo "
From "; echo "
Tinymessage "; echo "
"; echo ""; echo "
"; echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo ""; ?>