|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/cosma/ |
Upload File : |
#!/usr/bin/perl -w
use CGI qw/:standard/;
use strict;
my $query = new CGI;
my %params = $query->Vars;
foreach (keys %params) {
# if we want to strip html
# $params{$_} = &CGI::escapeHTML($params{$_});
}
my $sendmail = '/usr/sbin/sendmail';
my $to_email = 'AmsesCosma <[email protected]>';
my $from_email = $params{"i_email"};
my $msg_name = $params{"i_name"};
my $msg_email = $params{"i_email"};
my $msg_message = $params{"i_message"};
open(SENDMAIL, "|$sendmail -t") || die ("Where is sendmail?");
print SENDMAIL <<END;
To: $to_email
From: $from_email
Subject: Contact from AmsesCosma.com
The following information was submitted to the contact page form:
Name: $msg_name
Email: $msg_email
Message: $msg_message
END
close(SENDMAIL);
print <<ENDRESPONSE;
Content-type: text/html
<html>
<head>
<title>Amses Cosma</title>
<script language="javascript"><!--
//-->
</script>
<style type="text/css">
<!--
.description {font: 11px verdana, arial, helvetica, sans serif; color:#222222;}
-->
</style>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" margin="0,0" background="img/bg.gif">
<table width="742" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<table width="742" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<img src="img/ac_head_1.jpg" alt="Amses Cosma Studio" width="742" height="47" border="0">
</td>
</tr>
<tr>
<td>
<table width="742" cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="4">
<img src="img/px_null.gif" width="742" height="1" alt=" ">
</td>
</tr>
<tr>
<td>
<a href="sitespecific.html"><img src="img/nav_1_sitespec_norm.gif" alt=" " width="182" height="16" border="0"></a>
</td>
<td>
<a href="doorswinswalls.html"><img src="img/nav_2_dww_norm.gif" alt=" " width="182" height="16" border="0"></a>
</td>
<td>
<a href="clients.html"><img src="img/nav_3_clients_norm.gif" alt=" " width="233" height="16" border="0"></a>
</td>
<td width="143">
<a href="gallery.html"><img src="img/nav_7_gallery_norm.gif" alt=" " width="145" height="16" border="0"></a>
</td>
</tr>
<tr>
<td colspan="4">
<img src="img/px_null.gif" width="742" height="1" alt=" ">
</td>
</tr>
<tr>
<td>
<a href="about.html"><img src="img/nav_4_about_norm.gif" alt=" " width="182" height="16" border="0"></a>
</td>
<td>
<a href="#"><img src="img/nav_5_contact_in.gif" alt=" " width="182" height="16" border="0"></a>
</td>
<td colspan="2">
<a href="ac_lighting/"><img src="img/nav_6_aclight_norm.gif" alt=" " width="378" height="16" border="0"></a>
</td>
</tr>
<tr>
<td colspan="4">
<img src="img/px_null.gif" width="742" height="2" alt=" ">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="742" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="21">
<img src="img/px_null.gif" width="21" height="1" alt=" ">
</td>
<td width="114" valign="top">
<table width="114" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">
<!--sidebar-->
<table width="114" cellspacing="0" cellpadding="0" border="0">
<tr><td><img src="img/px_null.gif" width="1" height="218" alt=" "></td></tr>
<tr><td><img src="img/sidebar_contactinfo.gif" alt=" " width="114" height="105" border="0"></td></tr>
</table>
</td>
</tr>
</table>
</td>
<td width="2">
<img src="img/px_null.gif" width="2" height="1" alt=" ">
</td>
<td width="605" background="img/lighttile.gif" valign="top">
<!--content-->
<table width="587" cellspacing="0" cellpadding="12" border="0">
<tr><td width="125" class="description">
Thank you. The information you submitted has been delivered.
</td></tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
ENDRESPONSE