Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$ENV{PATH} = "/usr/sbin";
# open the pipe to sendmail
open (MAIL, "|/usr/sbin/sendmail -oi -t") or
&dienice("Can't fork for sendmail: $!\n");
# change this to your own e-mail address
my $recipient = 'jgleone@msn.com';
# Start printing the mail headers
# You must specify who it's to, or it won't be delivered:
print MAIL "To: $recipient\n";
# From should probably be the webserver.
print MAIL "From: order\@JerichoJunction.com\n";
# print a subject line so you know it's from your form cgi.
print MAIL "Subject: Jericho Junction order\n\n";
# Now print the body of your mail message.
print MAIL " $firsttm
Jericho Junction Order Confirmation
Church Name: $church
Recipiants Name: $first $middle $last
Position/Title: $title
Street Address: $address1
City: $city
State: $state
Zip: $zip
Daytime Phone: $phone
Card Type: $visa
Card Number: $cardnum
Exp. Date: $month/$year
E-Mail: $address2
_____________________________________________________________________
| DESCRIPTION QUANTITY |
|?????????????????????????????????????????????????????????????????????|
| Jericho Junction Children's Church Production Kit --------- $Qntya |
| Jericho Junction Video Training Seminar --------- $Qntyb |
| Jericho Junction Children's Music CD --------- $Qntyc |
| |
|?????????????????????????????????????????????????????????????????????|
| Jericho Junction 100% Cotton T-Shirt |
| |
| Adult: S = $QntyjjsAa M = $QntyjjsAb L = $QntyjjsAc XL = $QntyjjsAd 2X = $QntyjjsAe |
| Child: S = $QntyjjsCa M = $QntyjjsCb L = $QntyjjsCc |
| |
|?????????????????????????????????????????????????????????????????????|
| Jericho Junction Sound Effects CD --------- $Qntyd |
| Search for Hidden Treasures VBS Production Kit --------- $Qntye |
| Berry Farm VBS Production Kit --------- $berry |
| |
|?????????????????????????????????????????????????????????????????????|
| Search for Hidden Treasures 100% Cotton T-Shirt |
| |
| Adult: S = $QntyhtsAa M = $QntyhtsAb L = $QntyhtsAc XL = $QntyhtsAd 2X = $QntyhtsAe |
| Child: S = $QntyhtsCa M = $QntyhtsCb L = $QntyhtsCc |
| |
|?????????????????????????????????????????????????????????????????????|
| Kidz Zone Curriculum --------- $Qntyf |
| |
|?????????????????????????????????????????????????????????????????????|
| Merchandise Total --------------------------------- \$$total
| Shipping & Handling --------------------------------- \$$totalship
| TOTAL AMOUNT DUE --------------------------------- \$$totalgrnd
| |
?????????????????????????????????????????????????????????????????????
\n";
# Be sure to close the MAIL input stream so that the
# message actually gets mailed.
close(MAIL);
print MAIL "Content-Type: text/html\n\n $firsttm
print MAIL Content-Type: text/html/n/n This order was
completed at, 1:14.27 and sent on 03/03/2005
<HTML>
This order was completed at, 1:14.27 and sent on 03/03/2005
Jericho Junction Order Confirmation
Church Name: test
Recipiants Name: test t test
Position/Title: test
Street Address: test
City: test
State: te
Zip: test
Daytime Phone: v
Card Type: Visa
Card Number: test
Exp. Date: 1/2005
E-Mail: test
_____________________________________________________________________
| DESCRIPTION QUANTITY |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Jericho Junction Children's Church Production Kit --------- 53
|
| Jericho Junction Video Training Seminar --------- 3 |
| Jericho Junction Children's Music CD --------- 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Jericho Junction 100% Cotton T-Shirt |
| |
| Adult: S = 0 M = 0 L = 0 XL = 0 2X = 0 |
| Child: S = 0 M = 0 L = 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Jericho Junction Sound Effects CD --------- 0 |
| Search for Hidden Treasures VBS Production Kit --------- 0 |
| Berry Farm VBS Production Kit --------- 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Search for Hidden Treasures 100% Cotton T-Shirt |
| |
| Adult: S = 0 M = 0 L = 0 XL = 0 2X = 0 |
| Child: S = 0 M = 0 L = 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Kidz Zone Curriculum --------- 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Merchandise Total --------------------------------- $21356.85
| Shipping & Handling --------------------------------- $
| TOTAL AMOUNT DUE --------------------------------- $
| |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
</HTML>
/n
$ENV{PATH} = "/usr/sbin";
# open the pipe to sendmail
open (MAIL, "|/usr/sbin/sendmail -oi -t") or
&dienice("Can't fork for sendmail: $!\n");
# change this to your own e-mail address
my $recipient = 'jgleone@msn.com';
# Start printing the mail headers
# You must specify who it's to, or it won't be delivered:
print MAIL "To: $recipient\n";
# From should probably be the webserver.
print MAIL "From: order\@JerichoJunction.com\n";
# print a subject line so you know it's from your form cgi.
print MAIL "Subject: Jericho Junction order\n\n";
# Now print the body of your mail message.
print MAIL " Content-Type: text/html/n/n
<HTML> $firsttm
Jericho Junction Order Confirmation
Church Name: $church
Recipiants Name: $first $middle $last
Position/Title: $title
Street Address: $address1
City: $city
State: $state
Zip: $zip
Daytime Phone: $phone
Card Type: $visa
Card Number: $cardnum
Exp. Date: $month/$year
E-Mail: $address2
_____________________________________________________________________
| DESCRIPTION QUANTITY |
|?????????????????????????????????????????????????????????????????????|
| Jericho Junction Children's Church Production Kit --------- $Qntya |
| Jericho Junction Video Training Seminar --------- $Qntyb |
| Jericho Junction Children's Music CD --------- $Qntyc |
| |
|?????????????????????????????????????????????????????????????????????|
| Jericho Junction 100% Cotton T-Shirt |
| |
| Adult: S = $QntyjjsAa M = $QntyjjsAb L = $QntyjjsAc XL = $QntyjjsAd 2X = $QntyjjsAe |
| Child: S = $QntyjjsCa M = $QntyjjsCb L = $QntyjjsCc |
| |
|?????????????????????????????????????????????????????????????????????|
| Jericho Junction Sound Effects CD --------- $Qntyd |
| Search for Hidden Treasures VBS Production Kit --------- $Qntye |
| Berry Farm VBS Production Kit --------- $berry |
| |
|?????????????????????????????????????????????????????????????????????|
| Search for Hidden Treasures 100% Cotton T-Shirt |
| |
| Adult: S = $QntyhtsAa M = $QntyhtsAb L = $QntyhtsAc XL = $QntyhtsAd 2X = $QntyhtsAe |
| Child: S = $QntyhtsCa M = $QntyhtsCb L = $QntyhtsCc |
| |
|?????????????????????????????????????????????????????????????????????|
| Kidz Zone Curriculum --------- $Qntyf |
| |
|?????????????????????????????????????????????????????????????????????|
| Merchandise Total --------------------------------- \$$total
| Shipping & Handling --------------------------------- \$$totalship
| TOTAL AMOUNT DUE --------------------------------- \$$totalgrnd
| |
?????????????????????????????????????????????????????????????????????
\n";
# Be sure to close the MAIL input stream so that the
# message actually gets mailed.
close(MAIL);
print MAIL Content-Type: text/html/n/n This order was
completed at, 1:14.27 and sent on 03/03/2005
<HTML>
This order was completed at, 1:14.27 and sent on 03/03/2005
Jericho Junction Order Confirmation
Church Name: test
Recipiants Name: test t test
Position/Title: test
Street Address: test
City: test
State: te
Zip: test
Daytime Phone: v
Card Type: Visa
Card Number: test
Exp. Date: 1/2005
E-Mail: test
_____________________________________________________________________
| DESCRIPTION QUANTITY |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Jericho Junction Children's Church Production Kit --------- 53
|
| Jericho Junction Video Training Seminar --------- 3 |
| Jericho Junction Children's Music CD --------- 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Jericho Junction 100% Cotton T-Shirt |
| |
| Adult: S = 0 M = 0 L = 0 XL = 0 2X = 0 |
| Child: S = 0 M = 0 L = 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Jericho Junction Sound Effects CD --------- 0 |
| Search for Hidden Treasures VBS Production Kit --------- 0 |
| Berry Farm VBS Production Kit --------- 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Search for Hidden Treasures 100% Cotton T-Shirt |
| |
| Adult: S = 0 M = 0 L = 0 XL = 0 2X = 0 |
| Child: S = 0 M = 0 L = 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Kidz Zone Curriculum --------- 0 |
| |
|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|
| Merchandise Total --------------------------------- $21356.85
| Shipping & Handling --------------------------------- $
| TOTAL AMOUNT DUE --------------------------------- $
| |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
</HTML>
/n
#!/usr/bin/perl -w
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
print header;
print start_html("Remote Host");
#### Program Starts here ####
my $recipient = 'natesk8@sbcglobal.net';
$ENV{PATH} = "/usr/sbin";
open (MAIL, "|/usr/sbin/sendmail -oi -t") or &dienice("Can't fork for sendmail: $!\n");
print MAIL "To: $recipient\n";
print MAIL "From: me\@myself.com\n";
print MAIL "Subject: Testing email script\n\n";
print MAIL "Content-Type: text/html\n\n";
print MAIL " this is a test body \n";
close(MAIL);
#### END ####
print "it has been sent\n";
Content-Type: text/html
this is a test body