<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Aiuto!!!]]></title><description><![CDATA[<p dir="auto">Salve a tutti, ho un grosso problema,<br />
sono un webmaster e devo gestire circa 160 siti, la maggiorparte di questi siti avevano un formmail che si appoggiava su dada... formmail che ha misteriosamente smesso di funzionare.<br />
Per ovviare il problema ho modificato l'hosting di un mio sito in modo tale che leggesse i php, nella cartella cgi-bin ho inserito un <a href="http://formmail.pl" rel="nofollow ugc">formmail.pl</a><br />
e negli altri siti ho un form html con l'action diretto al <a href="http://formmail.pl" rel="nofollow ugc">formmail.pl</a><br />
fin quì nessun problema, piccolo particolare è che quando do' l'invia arriva il messaggio di errore bad recipient, cosa posso fare???<br />
di seguito Vi posto il codice dei contatti e del formmail, grazie!!</p>
]]></description><link>https://dev.connect.gt/topic/15657/aiuto</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 10:36:38 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/15657.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Aug 2006 11:46:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aiuto!!! on Wed, 30 Aug 2006 07:36:43 GMT]]></title><description><![CDATA[<p dir="auto">non vorrei essere scortese ma..</p>
<p dir="auto">mi permettete un piccolo OT?</p>
<p dir="auto">come può un webmaster di 160 siti non saper scrivere uno script per inviare mail? non dico conoscere programmazione ad oggetti, ad eventi, a quello che vi pare<br />
inviare una mail:():</p>
]]></description><link>https://dev.connect.gt/post/361722</link><guid isPermaLink="true">https://dev.connect.gt/post/361722</guid><dc:creator><![CDATA[osvi]]></dc:creator><pubDate>Wed, 30 Aug 2006 07:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to Aiuto!!! on Tue, 29 Aug 2006 16:13:40 GMT]]></title><description><![CDATA[<p dir="auto">Ciao e benvenuto. <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Ti chiedo cortesemente di:</p>
<ol>
<li>
<p dir="auto">dare un titolo coerente al 3d. Titoli quali aiuto, urgente etc etc sono spesso saltati di default.</p>
</li>
<li>
<p dir="auto">Provare a fare domande chiari e semplici. Postare 2000 righe di codice non aiuta di certo: se ognuno facesse come te potremmo dare 2 risposte al giorno quando va bene. <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
</li>
<li>
<p dir="auto">Usa il tasto {code}inserisci codice{/code} nel caso in cui tu debba postare codice per evitare di creare messaggi lunghi un boato sostituendo le parentesi graffe con quelle quadre[ ].</p>
</li>
</ol>
<p dir="auto">Grazie <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Ps se cerchi nel forum troverai molte discussioni sullo stesso argomento.</p>
]]></description><link>https://dev.connect.gt/post/361721</link><guid isPermaLink="true">https://dev.connect.gt/post/361721</guid><dc:creator><![CDATA[massy]]></dc:creator><pubDate>Tue, 29 Aug 2006 16:13:40 GMT</pubDate></item><item><title><![CDATA[Reply to Aiuto!!! on Tue, 29 Aug 2006 11:47:34 GMT]]></title><description><![CDATA[<p dir="auto"><a href="http://formmail.pl" rel="nofollow ugc">formmail.pl</a><br />
#!/usr/bin/perl<br />
##############################################################################</p>
<h1>FormMail Version 1.6</h1>
<h1>Copyright 1995-1997 Matt Wright <a href="mailto:mattw@worldwidemart.com" rel="nofollow ugc">mattw@worldwidemart.com</a></h1>
<h1>Created 06/09/95 Last Modified 05/02/97</h1>
<h1>Matt's Script Archive, Inc.: <a href="http://www.worldwidemart.com/scripts/" rel="nofollow ugc">http://www.worldwidemart.com/scripts/</a></h1>
<p dir="auto">##############################################################################</p>
<h1>COPYRIGHT NOTICE</h1>
<h1>Copyright 1995-1997 Matthew M. Wright All Rights Reserved.</h1>
<h1></h1>
<h1>FormMail may be used and modified free of charge by anyone so long as this</h1>
<h1>copyright notice and the comments above remain intact. By using this</h1>
<h1>code you agree to indemnify Matthew M. Wright from any liability that</h1>
<h1>might arise from its use.</h1>
<h1></h1>
<h1>Selling the code for this program without prior written consent is</h1>
<h1>expressly forbidden. In other words, please ask first before you try and</h1>
<h1>make money off of my program.</h1>
<h1></h1>
<h1>Obtain permission before redistributing this software over the Internet or</h1>
<h1>in any other medium. In all cases copyright and header must remain intact</h1>
<p dir="auto">##############################################################################</p>
<h1>Define Variables</h1>
<h1>Detailed Information Found In README File.</h1>
<h1>$mailprog defines the location of your sendmail program on your unix</h1>
<h1>system.</h1>
<p dir="auto">$mailprog = '/usr/lib/sendmail';</p>
<h1>@referers allows forms to be located only on servers which are defined</h1>
<h1>in this field. This security fix from the last version which allowed</h1>
<h1>anyone on any server to use your FormMail script on their web site.</h1>
<p dir="auto">@referers = ('<a href="http://hotelsonenga.it" rel="nofollow ugc">hotelsonenga.it</a>','192.110.124.133');</p>
<h1>Done</h1>
<p dir="auto">##############################################################################</p>
<h1>Check Referring URL</h1>
<p dir="auto">&amp;check_url;</p>
<h1>Retrieve Date</h1>
<p dir="auto">&amp;get_date;</p>
<h1>Parse Form Contents</h1>
<p dir="auto">&amp;parse_form;</p>
<h1>Check Required Fields</h1>
<p dir="auto">&amp;check_required;</p>
<h1>Return HTML Page or Redirect User</h1>
<p dir="auto">&amp;return_html;</p>
<h1>Send E-Mail</h1>
<p dir="auto">&amp;send_mail;<br />
sub check_url {</p>
<h1>Localize the check_referer flag which determines if user is valid.</h1>
<p dir="auto">local($check_referer) = 0;</p>
<h1>If a referring URL was specified, for each valid referer, make sure</h1>
<h1>that a valid referring URL was passed to FormMail.</h1>
<p dir="auto">if ($ENV{'HTTP_REFERER'}) {<br />
foreach $referer (@referers) {<br />
if ($ENV{'HTTP_REFERER'} =~ m|https?://([^/]*)$referer|i) {<br />
$check_referer = 1;<br />
last;<br />
}<br />
}<br />
}<br />
else {<br />
$check_referer = 1;<br />
}</p>
<h1>If the HTTP_REFERER was invalid, send back an error.</h1>
<p dir="auto">if ($check_referer != 1) { &amp;error('bad_referer') }<br />
}<br />
sub get_date {</p>
<h1>Define arrays for the day of the week and month of the year.</h1>
<p dir="auto">@days = ('Sunday','Monday','Tuesday','Wednesday',<br />
'Thursday','Friday','Saturday');<br />
@months = ('January','February','March','April','May','June','July',<br />
'August','September','October','November','December');</p>
<h1>Get the current time and format the hour, minutes and seconds. Add</h1>
<h1>1900 to the year to get the full 4 digit year.</h1>
<p dir="auto">($sec,$min,$hour,$mday,$mon,$year,$wday) = (localtime(time))[0,1,2,3,4,5,6];<br />
$time = sprintf("%02d:%02d:%02d",$hour,$min,$sec);<br />
$year += 1900;</p>
<h1>Format the date.</h1>
<p dir="auto">$date = "$days[$wday], $months[$mon] $mday, $year at $time";<br />
}<br />
sub parse_form {</p>
<h1>Define the configuration associative array.</h1>
<p dir="auto">%Config = ('recipient','', 'subject','',<br />
'email','', 'realname','',<br />
'redirect','', 'bgcolor','',<br />
'background','', 'link_color','',<br />
'vlink_color','', 'text_color','',<br />
'alink_color','', 'title','',<br />
'sort','', 'print_config','',<br />
'required','', 'env_report','',<br />
'return_link_title','', 'return_link_url','',<br />
'print_blank_fields','', 'missing_fields_redirect','');</p>
<h1>Determine the form's REQUEST_METHOD (GET or POST) and split the form</h1>
<h1>fields up into their name-value pairs. If the REQUEST_METHOD was</h1>
<h1>not GET or POST, send an error.</h1>
<p dir="auto">if ($ENV{'REQUEST_METHOD'} eq 'GET') {</p>
<h1>Split the name-value pairs</h1>
<p dir="auto">@pairs = split(/&amp;/, $ENV{'QUERY_STRING'});<br />
}<br />
elsif ($ENV{'REQUEST_METHOD'} eq 'POST') {</p>
<h1>Get the input</h1>
<p dir="auto">read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});</p>
<h1>Split the name-value pairs</h1>
<p dir="auto">@pairs = split(/&amp;/, $buffer);<br />
}<br />
else {<br />
&amp;error('request_method');<br />
}</p>
<h1>For each name-value pair:</h1>
<p dir="auto">foreach $pair (@pairs) {</p>
<h1>Split the pair up into individual variables.</h1>
<p dir="auto">local($name, $value) = split(/=/, $pair);</p>
<h1>Decode the form encoding on the name and value variables.</h1>
<p dir="auto">$name =~ tr/+/ /;<br />
$name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;<br />
$value =~ tr/+/ /;<br />
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;</p>
<h1>If they try to include server side includes, erase them, so they</h1>
<h1>aren't a security risk if the html gets returned. Another</h1>
<h1>security hole plugged up.</h1>
<p dir="auto">$value =~ s/&lt;!--(.|\n)*--&gt;//g;</p>
<h1>If the field name has been specified in the %Config array, it will</h1>
<h1>return a 1 for defined($Config{$name}}) and we should associate</h1>
<h1>this value with the appropriate configuration variable. If this</h1>
<h1>is not a configuration form field, put it into the associative</h1>
<h1>array %Form, appending the value with a ', ' if there is already a</h1>
<h1>value present. We also save the order of the form fields in the</h1>
<h1>@Field_Order array so we can use this order for the generic sort.</h1>
<p dir="auto">if (defined($Config{$name})) {<br />
$Config{$name} = $value;<br />
}<br />
else {<br />
if ($Form{$name} &amp;&amp; $value) {<br />
$Form{$name} = "$Form{$name}, $value";<br />
}<br />
elsif ($value) {<br />
push(@Field_Order,$name);<br />
$Form{$name} = $value;<br />
}<br />
}<br />
}</p>
<h1>The next six lines remove any extra spaces or new lines from the</h1>
<h1>configuration variables, which may have been caused if your editor</h1>
<h1>wraps lines after a certain length or if you used spaces between field</h1>
<h1>names or environment variables.</h1>
<p dir="auto">$Config{'required'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;<br />
$Config{'required'} =~ s/(\s+)?\n+(\s+)?//g;<br />
$Config{'env_report'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;<br />
$Config{'env_report'} =~ s/(\s+)?\n+(\s+)?//g;<br />
$Config{'print_config'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;<br />
$Config{'print_config'} =~ s/(\s+)?\n+(\s+)?//g;</p>
<h1>Split the configuration variables into individual field names.</h1>
<p dir="auto">@Required = split(/,/,$Config{'required'});<br />
@Env_Report = split(/,/,$Config{'env_report'});<br />
@Print_Config = split(/,/,$Config{'print_config'});<br />
}<br />
sub check_required {</p>
<h1>Localize the variables used in this subroutine.</h1>
<p dir="auto">local($require, @error);<br />
if (!$Config{'recipient'}) {<br />
if (!defined(%Form)) { &amp;error('bad_referer') }<br />
else { &amp;error('no_recipient') }<br />
}</p>
<h1>For each require field defined in the form:</h1>
<p dir="auto">foreach $require (@Required) {</p>
<h1>If the required field is the email field, the syntax of the email</h1>
<h1>address if checked to make sure it passes a valid syntax.</h1>
<p dir="auto">if ($require eq 'email' &amp;&amp; !&amp;check_email($Config{$require})) {<br />
push(@error,$require);<br />
}</p>
<h1>Otherwise, if the required field is a configuration field and it</h1>
<h1>has no value or has been filled in with a space, send an error.</h1>
<p dir="auto">elsif (defined($Config{$require})) {<br />
if (!$Config{$require}) {<br />
push(@error,$require);<br />
}<br />
}</p>
<h1>If it is a regular form field which has not been filled in or</h1>
<h1>filled in with a space, flag it as an error field.</h1>
<p dir="auto">elsif (!$Form{$require}) {<br />
push(@error,$require);<br />
}<br />
}</p>
<h1>If any error fields have been found, send error message to the user.</h1>
<p dir="auto">if (@error) { &amp;error('missing_fields', @error) }<br />
}<br />
sub return_html {</p>
<h1>Local variables used in this subroutine initialized.</h1>
<p dir="auto">local($key,$sort_order,$sorted_field);</p>
<h1>If redirect option is used, print the redirectional location header.</h1>
<p dir="auto">if ($Config{'redirect'}) {<br />
print "Location: $Config{'redirect'}\n\n";<br />
}</p>
<h1>Otherwise, begin printing the response page.</h1>
<p dir="auto">else {</p>
<h1>Print HTTP header and opening HTML tags.</h1>
<p dir="auto">print "Content-type: text/html\n\n";<br />
print "&lt;html&gt;\n &lt;head&gt;\n";</p>
<h1>Print out title of page</h1>
<p dir="auto">if ($Config{'title'}) { print " &lt;title&gt;$Config{'title'}&lt;/title&gt;\n" }<br />
else { print " &lt;title&gt;Thank You&lt;/title&gt;\n" }<br />
print " &lt;/head&gt;\n &lt;body";</p>
<h1>Get Body Tag Attributes</h1>
<p dir="auto">&amp;body_attributes;</p>
<h1>Close Body Tag</h1>
<p dir="auto">print "&gt;\n &lt;center&gt;\n";</p>
<h1>Print custom or generic title.</h1>
<p dir="auto">if ($Config{'title'}) { print " &lt;h1&gt;$Config{'title'}&lt;/h1&gt;\n" }<br />
else { print " &lt;h1&gt;Thank You For Filling Out This Form&lt;/h1&gt;\n" }<br />
print "&lt;/center&gt;\n";<br />
print "Below is what you submitted to $Config{'recipient'} on ";<br />
print "$date&lt;p&gt;&lt;hr size=1 width=75%&gt;&lt;p&gt;\n";</p>
<h1>Sort alphabetically if specified:</h1>
<p dir="auto">if ($Config{'sort'} eq 'alphabetic') {<br />
foreach $field (sort keys %Form) {</p>
<h1>If the field has a value or the print blank fields option</h1>
<h1>is turned on, print out the form field and value.</h1>
<p dir="auto">if ($Config{'print_blank_fields'} || $Form{$field}) {<br />
print "&lt;b&gt;$field:&lt;/b&gt; $Form{$field}&lt;p&gt;\n";<br />
}<br />
}<br />
}</p>
<h1>If a sort order is specified, sort the form fields based on that.</h1>
<p dir="auto">elsif ($Config{'sort'} =~ /^order:.<em>,.</em>/) {</p>
<h1>Set the temporary $sort_order variable to the sorting order,</h1>
<h1>remove extraneous line breaks and spaces, remove the order:</h1>
<h1>directive and split the sort fields into an array.</h1>
<p dir="auto">$sort_order = $Config{'sort'};<br />
$sort_order =~ s/(\s+|\n)?,(\s+|\n)?/,/g;<br />
$sort_order =~ s/(\s+)?\n+(\s+)?//g;<br />
$sort_order =~ s/order://;<br />
@sorted_fields = split(/,/, $sort_order);</p>
<h1>For each sorted field, if it has a value or the print blank</h1>
<h1>fields option is turned on print the form field and value.</h1>
<p dir="auto">foreach $sorted_field (@sorted_fields) {<br />
if ($Config{'print_blank_fields'} || $Form{$sorted_field}) {<br />
print "&lt;b&gt;$sorted_field:&lt;/b&gt; $Form{$sorted_field}&lt;p&gt;\n";<br />
}<br />
}<br />
}</p>
<h1>Otherwise, default to the order in which the fields were sent.</h1>
<p dir="auto">else {</p>
<h1>For each form field, if it has a value or the print blank</h1>
<h1>fields option is turned on print the form field and value.</h1>
<p dir="auto">foreach $field (@Field_Order) {<br />
if ($Config{'print_blank_fields'} || $Form{$field}) {<br />
print "&lt;b&gt;$field:&lt;/b&gt; $Form{$field}&lt;p&gt;\n";<br />
}<br />
}<br />
}<br />
print "&lt;p&gt;&lt;hr size=1 width=75%&gt;&lt;p&gt;\n";</p>
<h1>Check for a Return Link and print one if found.</h1>
<p dir="auto">if ($Config{'return_link_url'} &amp;&amp; $Config{'return_link_title'}) {<br />
print "&lt;ul&gt;\n";<br />
print "&lt;li&gt;&lt;a href="$Config{'return_link_url'}"&gt;$Config{'return_link_title'}&lt;/a&gt;\n";<br />
print "&lt;/ul&gt;\n";<br />
}</p>
<h1>Print the page footer.</h1>
<p dir="auto">print &lt;&lt;"(END HTML FOOTER)";<br />
&lt;hr size=1 width=75%&gt;&lt;p&gt;<br />
&lt;center&gt;&lt;font size=-1&gt;&lt;a href="&lt;A href="<a href="http://www.worldwidemart.com/scripts/formmail.shtml%22%3EFormMail%3C/a%22" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml"&gt;FormMail&lt;/a"</a>&gt;<a href="http://www.worldwidemart.com/scripts/formmail.shtml" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml</a>"&gt;FormMail&lt;/a&gt; V1.6 <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/00a9.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--copyright" style="height:1.4em;width:auto;vertical-align:middle" title="©" alt="©" /> 1995 -1997 Matt Wright&lt;br&gt;<br />
A Free Product of &lt;a href="<a href="http://www.worldwidemart.com/scripts/%22%3EMatt's" rel="nofollow ugc">http://www.worldwidemart.com/scripts/"&gt;Matt's</a> Script Archive, Inc.&lt;/a&gt;&lt;/font&gt;&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
(END HTML FOOTER)<br />
}<br />
}<br />
sub send_mail {</p>
<h1>Localize variables used in this subroutine.</h1>
<p dir="auto">local($print_config,$key,$sort_order,$sorted_field,$env_report);</p>
<h1>Open The Mail Program</h1>
<p dir="auto">open(MAIL,"|$mailprog -t");<br />
print MAIL "To: $Config{'recipient'}\n";<br />
print MAIL "From: $Config{'email'} ($Config{'realname'})\n";</p>
<h1>Check for Message Subject</h1>
<p dir="auto">if ($Config{'subject'}) { print MAIL "Subject: $Config{'subject'}\n\n" }<br />
else { print MAIL "Subject: WWW Form Submission\n\n" }<br />
print MAIL "Below is the result of your feedback form. It was submitted by\n";<br />
print MAIL "$Config{'realname'} ($Config{'email'}) on $date\n";<br />
print MAIL "-" x 75 . "\n\n";<br />
if (@Print_Config) {<br />
foreach $print_config (@Print_Config) {<br />
if ($Config{$print_config}) {<br />
print MAIL "$print_config: $Config{$print_config}\n\n";<br />
}<br />
}<br />
}</p>
<h1>Sort alphabetically if specified:</h1>
<p dir="auto">if ($Config{'sort'} eq 'alphabetic') {<br />
foreach $field (sort keys %Form) {</p>
<h1>If the field has a value or the print blank fields option</h1>
<h1>is turned on, print out the form field and value.</h1>
<p dir="auto">if ($Config{'print_blank_fields'} || $Form{$field} ||<br />
$Form{$field} eq '0') {<br />
print MAIL "$field: $Form{$field}\n\n";<br />
}<br />
}<br />
}</p>
<h1>If a sort order is specified, sort the form fields based on that.</h1>
<p dir="auto">elsif ($Config{'sort'} =~ /^order:.<em>,.</em>/) {</p>
<h1>Remove extraneous line breaks and spaces, remove the order:</h1>
<h1>directive and split the sort fields into an array.</h1>
<p dir="auto">$Config{'sort'} =~ s/(\s+|\n)?,(\s+|\n)?/,/g;<br />
$Config{'sort'} =~ s/(\s+)?\n+(\s+)?//g;<br />
$Config{'sort'} =~ s/order://;<br />
@sorted_fields = split(/,/, $Config{'sort'});</p>
<h1>For each sorted field, if it has a value or the print blank</h1>
<h1>fields option is turned on print the form field and value.</h1>
<p dir="auto">foreach $sorted_field (@sorted_fields) {<br />
if ($Config{'print_blank_fields'} || $Form{$sorted_field} ||<br />
$Form{$sorted_field} eq '0') {<br />
print MAIL "$sorted_field: $Form{$sorted_field}\n\n";<br />
}<br />
}<br />
}</p>
<h1>Otherwise, default to the order in which the fields were sent.</h1>
<p dir="auto">else {</p>
<h1>For each form field, if it has a value or the print blank</h1>
<h1>fields option is turned on print the form field and value.</h1>
<p dir="auto">foreach $field (@Field_Order) {<br />
if ($Config{'print_blank_fields'} || $Form{$field} ||<br />
$Form{$field} eq '0') {<br />
print MAIL "$field: $Form{$field}\n\n";<br />
}<br />
}<br />
}<br />
print MAIL "-" x 75 . "\n\n";</p>
<h1>Send any specified Environment Variables to recipient.</h1>
<p dir="auto">foreach $env_report (@Env_Report) {<br />
if ($ENV{$env_report}) {<br />
print MAIL "$env_report: $ENV{$env_report}\n";<br />
}<br />
}<br />
close (MAIL);<br />
}<br />
sub check_email {</p>
<h1>Initialize local email variable with input to subroutine.</h1>
<p dir="auto">$email = $_[0];</p>
<h1>If the e-mail address contains:</h1>
<p dir="auto">if ($email =~ /(@.*@)|(..)|(@.)|(.@)|(^.)/ ||</p>
<h1>the e-mail address contains an invalid syntax. Or, if the</h1>
<h1>syntax does not match the following regular expression pattern</h1>
<h1>it fails basic syntax verification.</h1>
<p dir="auto">$email !~ /^.+@([?)[a-zA-Z0-9-.]+.([a-zA-Z]{2,3}|[0-9]{1,3})(]?)$/) {</p>
<h1>Basic syntax requires: one or more characters before the @ sign,</h1>
<h1>followed by an optional '[', then any number of letters, numbers,</h1>
<h1>dashes or periods (valid domain/IP characters) ending in a period</h1>
<h1>and then 2 or 3 letters (for domain suffixes) or 1 to 3 numbers</h1>
<h1>(for IP addresses). An ending bracket is also allowed as it is</h1>
<h1>valid syntax to have an email address like: user@[255.255.255.0]</h1>
<h1>Return a false value, since the e-mail address did not pass valid</h1>
<h1>syntax.</h1>
<p dir="auto">return 0;<br />
}<br />
else {</p>
<h1>Return a true value, e-mail verification passed.</h1>
<p dir="auto">return 1;<br />
}<br />
}<br />
sub body_attributes {</p>
<h1>Check for Background Color</h1>
<p dir="auto">if ($Config{'bgcolor'}) { print " bgcolor="$Config{'bgcolor'}"" }</p>
<h1>Check for Background Image</h1>
<p dir="auto">if ($Config{'background'}) { print " background="$Config{'background'}"" }</p>
<h1>Check for Link Color</h1>
<p dir="auto">if ($Config{'link_color'}) { print " link="$Config{'link_color'}"" }</p>
<h1>Check for Visited Link Color</h1>
<p dir="auto">if ($Config{'vlink_color'}) { print " vlink="$Config{'vlink_color'}"" }</p>
<h1>Check for Active Link Color</h1>
<p dir="auto">if ($Config{'alink_color'}) { print " alink="$Config{'alink_color'}"" }</p>
<h1>Check for Body Text Color</h1>
<p dir="auto">if ($Config{'text_color'}) { print " text="$Config{'text_color'}"" }<br />
}<br />
sub error {</p>
<h1>Localize variables and assign subroutine input.</h1>
<p dir="auto">local($error,@error_fields) = @_;<br />
local($host,$missing_field,$missing_field_list);<br />
if ($error eq 'bad_referer') {<br />
if ($ENV{'HTTP_REFERER'} =~ m|^https?://([\w.]+)|i) {<br />
$host = $1;<br />
print &lt;&lt;"(END ERROR HTML)";<br />
Content-type: text/html<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Bad Referrer - Access Denied&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body bgcolor=#FFFFFF text=#000000&gt;<br />
&lt;center&gt;<br />
&lt;table border=0 width=600 bgcolor=#9C9C9C&gt;<br />
&lt;tr&gt;&lt;th&gt;&lt;font size=+2&gt;Bad Referrer - Access Denied&lt;/font&gt;&lt;/th&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;table border=0 width=600 bgcolor=#CFCFCF&gt;<br />
&lt;tr&gt;&lt;td&gt;The form attempting to use<br />
&lt;a href="&lt;A href="<a href="http://www.worldwidemart.com/scripts/formmail.shtml%22%3EFormMail%3C/a%22" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml"&gt;FormMail&lt;/a"</a>&gt;<a href="http://www.worldwidemart.com/scripts/formmail.shtml" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml</a>"&gt;FormMail&lt;/a&gt;<br />
resides at &lt;tt&gt;$ENV{'HTTP_REFERER'}&lt;/tt&gt;, which is not allowed to access<br />
this cgi script.&lt;p&gt;<br />
If you are attempting to configure FormMail to run with this form, you need<br />
to add the following to @referers, explained in detail in the README file.&lt;p&gt;<br />
Add &lt;tt&gt;'$host'&lt;/tt&gt; to your &lt;tt&gt;&lt;b&gt;@referers&lt;/b&gt;&lt;/tt&gt; array.&lt;hr size=1&gt;<br />
&lt;center&gt;&lt;font size=-1&gt;<br />
&lt;a href="&lt;A href="<a href="http://www.worldwidemart.com/scripts/formmail.shtml%22%3EFormMail%3C/a%22" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml"&gt;FormMail&lt;/a"</a>&gt;<a href="http://www.worldwidemart.com/scripts/formmail.shtml" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml</a>"&gt;FormMail&lt;/a&gt; V1.6 <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/00a9.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--copyright" style="height:1.4em;width:auto;vertical-align:middle" title="©" alt="©" /> 1995 - 1997 Matt Wright&lt;br&gt;<br />
A Free Product of &lt;a href="<a href="http://www.worldwidemart.com/scripts/%22%3EMatt's" rel="nofollow ugc">http://www.worldwidemart.com/scripts/"&gt;Matt's</a> Script Archive, Inc.&lt;/a&gt;<br />
&lt;/font&gt;&lt;/center&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
(END ERROR HTML)<br />
}<br />
else {<br />
print &lt;&lt;"(END ERROR HTML)";<br />
Content-type: text/html<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;FormMail v1.6&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body bgcolor=#FFFFFF text=#000000&gt;<br />
&lt;center&gt;<br />
&lt;table border=0 width=600 bgcolor=#9C9C9C&gt;<br />
&lt;tr&gt;&lt;th&gt;&lt;font size=+2&gt;FormMail&lt;/font&gt;&lt;/th&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;table border=0 width=600 bgcolor=#CFCFCF&gt;<br />
&lt;tr&gt;&lt;th&gt;&lt;tt&gt;&lt;font size=+1&gt;Copyright 1995 - 1997 Matt Wright&lt;br&gt;<br />
Version 1.6 - Released May 02, 1997&lt;br&gt;<br />
A Free Product of &lt;a href="<a href="http://www.worldwidemart.com/scripts/%22%3EMatt's" rel="nofollow ugc">http://www.worldwidemart.com/scripts/"&gt;Matt's</a> Script Archive,<br />
Inc.&lt;/a&gt;&lt;/font&gt;&lt;/tt&gt;&lt;/th&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
(END ERROR HTML)<br />
}<br />
}<br />
elsif ($error eq 'request_method') {<br />
print &lt;&lt;"(END ERROR HTML)";<br />
Content-type: text/html<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Error: Request Method&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body bgcolor=#FFFFFF text=#000000&gt;<br />
&lt;center&gt;<br />
&lt;table border=0 width=600 bgcolor=#9C9C9C&gt;<br />
&lt;tr&gt;&lt;th&gt;&lt;font size=+2&gt;Error: Request Method&lt;/font&gt;&lt;/th&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;table border=0 width=600 bgcolor=#CFCFCF&gt;<br />
&lt;tr&gt;&lt;td&gt;The Request Method of the Form you submitted did not match<br />
either &lt;tt&gt;GET&lt;/tt&gt; or &lt;tt&gt;POST&lt;/tt&gt;. Please check the form and make sure the<br />
&lt;tt&gt;method=&lt;/tt&gt; statement is in upper case and matches &lt;tt&gt;GET&lt;/tt&gt; or &lt;tt&gt;POST&lt;/tt&gt;.&lt;p&gt;<br />
&lt;center&gt;&lt;font size=-1&gt;<br />
&lt;a href="&lt;A href="<a href="http://www.worldwidemart.com/scripts/formmail.shtml%22%3EFormMail%3C/a%22" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml"&gt;FormMail&lt;/a"</a>&gt;<a href="http://www.worldwidemart.com/scripts/formmail.shtml" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml</a>"&gt;FormMail&lt;/a&gt; V1.6 <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/00a9.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--copyright" style="height:1.4em;width:auto;vertical-align:middle" title="©" alt="©" /> 1995 - 1997 Matt Wright&lt;br&gt;<br />
A Free Product of &lt;a href="<a href="http://www.worldwidemart.com/scripts/%22%3EMatt's" rel="nofollow ugc">http://www.worldwidemart.com/scripts/"&gt;Matt's</a> Script Archive, Inc.&lt;/a&gt;<br />
&lt;/font&gt;&lt;/center&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
(END ERROR HTML)<br />
}<br />
elsif ($error eq 'no_recipient') {<br />
print &lt;&lt;"(END ERROR HTML)";<br />
Content-type: text/html<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Error: No Recipient&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body bgcolor=#FFFFFF text=#000000&gt;<br />
&lt;center&gt;<br />
&lt;table border=0 width=600 bgcolor=#9C9C9C&gt;<br />
&lt;tr&gt;&lt;th&gt;&lt;font size=+2&gt;Error: No Recipient&lt;/font&gt;&lt;/th&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;table border=0 width=600 bgcolor=#CFCFCF&gt;<br />
&lt;tr&gt;&lt;td&gt;No Recipient was specified in the data sent to FormMail. Please<br />
make sure you have filled in the 'recipient' form field with an e-mail<br />
address. More information on filling in recipient form fields can be<br />
found in the README file.&lt;hr size=1&gt;<br />
&lt;center&gt;&lt;font size=-1&gt;<br />
&lt;a href="&lt;A href="<a href="http://www.worldwidemart.com/scripts/formmail.shtml%22%3EFormMail%3C/a%22" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml"&gt;FormMail&lt;/a"</a>&gt;<a href="http://www.worldwidemart.com/scripts/formmail.shtml" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml</a>"&gt;FormMail&lt;/a&gt; V1.6 <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/00a9.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--copyright" style="height:1.4em;width:auto;vertical-align:middle" title="©" alt="©" /> 1995 - 1997 Matt Wright&lt;br&gt;<br />
A Free Product of &lt;a href="<a href="http://www.worldwidemart.com/scripts/%22%3EMatt's" rel="nofollow ugc">http://www.worldwidemart.com/scripts/"&gt;Matt's</a> Script Archive, Inc.&lt;/a&gt;<br />
&lt;/font&gt;&lt;/center&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
(END ERROR HTML)<br />
}<br />
elsif ($error eq 'missing_fields') {<br />
if ($Config{'missing_fields_redirect'}) {<br />
print "Location: $Config{'missing_fields_redirect'}\n\n";<br />
}<br />
else {<br />
foreach $missing_field (@error_fields) {<br />
$missing_field_list .= " &lt;li&gt;$missing_field\n";<br />
}<br />
print &lt;&lt;"(END ERROR HTML)";<br />
Content-type: text/html<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Error: Blank Fields&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;center&gt;<br />
&lt;table border=0 width=600 bgcolor=#9C9C9C&gt;<br />
&lt;tr&gt;&lt;th&gt;&lt;font size=+2&gt;Error: Blank Fields&lt;/font&gt;&lt;/th&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;table border=0 width=600 bgcolor=#CFCFCF&gt;<br />
&lt;tr&gt;&lt;td&gt;The following fields were left blank in your submission form:&lt;p&gt;<br />
&lt;ul&gt;<br />
$missing_field_list<br />
&lt;/ul&gt;&lt;br&gt;<br />
These fields must be filled in before you can successfully submit the form.&lt;p&gt;<br />
Please use your browser's back button to return to the form and try again.&lt;hr size=1&gt;<br />
&lt;center&gt;&lt;font size=-1&gt;<br />
&lt;a href="&lt;A href="<a href="http://www.worldwidemart.com/scripts/formmail.shtml%22%3EFormMail%3C/a%22" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml"&gt;FormMail&lt;/a"</a>&gt;<a href="http://www.worldwidemart.com/scripts/formmail.shtml" rel="nofollow ugc">http://www.worldwidemart.com/scripts/formmail.shtml</a>"&gt;FormMail&lt;/a&gt; V1.6 <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/00a9.png?v=2190ae3dadd" class="not-responsive emoji emoji-android emoji--copyright" style="height:1.4em;width:auto;vertical-align:middle" title="©" alt="©" /> 1995 - 1997 Matt Wright&lt;br&gt;<br />
A Free Product of &lt;a href="<a href="http://www.worldwidemart.com/scripts/%22%3EMatt's" rel="nofollow ugc">http://www.worldwidemart.com/scripts/"&gt;Matt's</a> Script Archive, Inc.&lt;/a&gt;<br />
&lt;/font&gt;&lt;/center&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/center&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
(END ERROR HTML)<br />
}<br />
}<br />
exit;<br />
}</p>
]]></description><link>https://dev.connect.gt/post/361756</link><guid isPermaLink="true">https://dev.connect.gt/post/361756</guid><dc:creator><![CDATA[darkneo]]></dc:creator><pubDate>Tue, 29 Aug 2006 11:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to Aiuto!!! on Tue, 29 Aug 2006 11:47:02 GMT]]></title><description><![CDATA[<p dir="auto">contatti.html</p>
<p dir="auto">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Albergo Genzianella - Chiesa Valmalenco - Italia&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body leftmargin=20 rightmargin=0 alink=#FF8605 topmargin=12 bottomargin=3&gt;<br />
&lt;form method="post" ACTION="<a href="http://www.hotelsonenga.it/cgi-bin/FormMail.pl" rel="nofollow ugc">http://www.hotelsonenga.it/cgi-bin/FormMail.pl</a>"&gt;<br />
&lt;INPUT type="hidden" name="recipient" value="<a href="mailto:info@hgenzianella.com" rel="nofollow ugc">info@hgenzianella.com</a>"&gt;<br />
&lt;INPUT TYPE="hidden" NAME="subject" VALUE="Richiesta informazioni per Albergo Genzianella"&gt;<br />
&lt;INPUT TYPE="hidden" NAME="redirect" VALUE="<a href="http://www.hgenzianella.com/reply.htm" rel="nofollow ugc">http://www.hgenzianella.com/reply.htm</a>"&gt;<br />
&lt;table align=left border=0 cellspacing=0 cellpadding=0&gt;<br />
&lt;tr&gt;<br />
&lt;td colspan=2 valign=top align="center"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;Per ricevere informazioni compila con i tuoi dati il seguente modulo&lt;/strong&gt;&lt;br&gt;<br />
To receive any information, please fill this form up:&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="left"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;Nome&lt;/strong&gt;&lt;br&gt;<br />
Name&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;input type="text" size="40" name="nome"&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="left"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;Società (facoltativo)&lt;/strong&gt;&lt;br&gt;<br />
Company (optional)&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;input type="text" size="40" name="societa"&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="left"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;Tel. + Prefisso&lt;/strong&gt;&lt;br&gt;<br />
Phone&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;input type="text" size="40" name="tel"&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="left"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;Fax (facoltativo)&lt;/strong&gt;&lt;br&gt;<br />
Fax (optional)&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;input type="text" size="40" name="fax"&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="left"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;E-mail&lt;/strong&gt;<br />
&lt;td&gt;<br />
&lt;input type="text" size="40" name="mail"&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="left"&gt;&lt;font face="Tahoma, Verdana" size=2&gt;&lt;strong&gt;Richiesta informazioni&lt;/strong&gt;<br />
   &lt;br&gt;<br />
Ask information<br />
&lt;/font&gt;&lt;/td&gt;<br />
&lt;td&gt;<br />
&lt;textarea name="info" rows="5" cols="40"&gt;&lt;/textarea&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;&lt;tr&gt;<br />
&lt;td align=left colspan=2&gt;&lt;img src="images/checked.gif" hspace=0 align=left border=0&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td align="right"&gt;&lt;br&gt;<br />
&lt;input type="submit" name="name" value="Invia modulo / Send Form"&gt;<br />
&lt;/td&gt;<br />
&lt;td&gt;&lt;br&gt;<br />
&lt;input type="reset" name="name" value="Cancella modulo / Reset Form"&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></description><link>https://dev.connect.gt/post/361755</link><guid isPermaLink="true">https://dev.connect.gt/post/361755</guid><dc:creator><![CDATA[darkneo]]></dc:creator><pubDate>Tue, 29 Aug 2006 11:47:02 GMT</pubDate></item></channel></rss>