Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts

    formmail.pl From Address Problem

    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

    PHP Code:
    #!/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_code0;
      
    $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';
    Fromyou@your.com
    Subject
    form submission

    Thank you 
    for your form submission.

    END_OF_CONFIRMATION 
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,942
    Thanks
    2
    Thanked 169 Times in 164 Posts
    Have you tried:
    Code:
      $confirmation_text = <<'END_OF_CONFIRMATION';
    From: sales@mac23.org
    Subject: form submission
    
    Thank you for your form submission.
    
    END_OF_CONFIRMATION

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    Yes I tried that...it made no difference...
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •