hi guys, i have a little problem with the FormMail Script, im set it up
for one of my websites but somehow,
the sender name appears as "nobody". it was working fine before, then i
noticed that the sender address was wrong and i tryed to fix it..
i lost my settings and now i cant get it to work just right; that
"nobody" on the from field doesn't seem to go away.
my hosting is 1and1.com ( wich by the way enforces the use of this
script for sending mail) and heres the code as i have.
i made some changes that were necessary for it to work with the host.
I would really appreciate any light.
# NMS FormMail Version 3.14c1
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog @referers
@allow_mail_to @recipients %recipient_alias
@valid_ENV $date_fmt $style $send_confirmation_mail
$confirmation_text $locale $charset $no_content
$double_spacing $wrap_text $wrap_style $postmaster
# PROGRAM INFORMATION
# FormMail.pl Version 3.14c1
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <http://www.gnu.org/licenses/gpl.html> or
# the Artistic License
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.
# USER CONFIGURATION SECTION
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
$DEBUGGING = 1;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail -oi -t -f
$postmaster = 'info@...';
@referers = qw(www.wlmarketingclub.com);
@allow_mail_to = qw(info@...);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 1;
$confirmation_text = <<'END_OF_CONFIRMATION';
Subject: form submission
Thank you for your form submission.
From: Jonathan Stowe <jns@ge...> - 2005-12-28 10:18:45
On Fri, 2005-12-23 at 16:52, Amable wrote:
> hi guys, i have a little problem with the FormMail Script, im set it up
> for one of my websites but somehow,
> the sender name appears as "nobody". it was working fine before, then i
> noticed that the sender address was wrong and i tryed to fix it..
> i lost my settings and now i cant get it to work just right; that
> "nobody" on the from field doesn't seem to go away.
> my hosting is 1and1.com ( wich by the way enforces the use of this
> script for sending mail) and heres the code as i have.
It uses the values of the 'email' and 'realname' fields from the form to
create the 'From' address if they are present.
This e-mail is sponsored by http://www.integration-house.com/