...

View Full Version : formmail.pl From Address Problem



rfresh
05-21-2009, 05:38 AM
I'm using formmail.pl as shown below but when the email arrives the From address is:

nobody@aerostar.websitewelcome.com

I want it to be from sales@mac23.org

How do I configure formmail.pl to do that?

Thanks



#!/usr/bin/perl -wT
#
# NMS FormMail Version 3.14c1
#

use strict;
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
$address_style
);

# 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
# <http://www.perl.com/pub/a/language/misc/Artistic.html>
#
# 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.
#
BEGIN
{
$DEBUGGING = 0;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 6;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = 'sales@mac23.org';
@referers = qw(mac23.org);
@allow_mail_to = qw(sales@mac23.org);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$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 = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: you@your.com
Subject: form submission

Thank you for your form submission.

END_OF_CONFIRMATION

FishMonger
05-21-2009, 09:26 PM
Have you tried:

$confirmation_text = <<'END_OF_CONFIRMATION';
From: sales@mac23.org
Subject: form submission

Thank you for your form submission.

END_OF_CONFIRMATION

rfresh
05-22-2009, 06:05 PM
Yes I tried that...it made no difference...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum