From Address vs Sender (2024)

Index

Introduction

Over the history of the Internet, email systems have become more complexand more varied, and the standards for email exchange have developedaccordingly.

Unfortunately, not all email systems operate according to the Internet standards.This means that programs such as FormMail must cater for non-standard aswell as standards-compliant email servers.

One area in which there is quite a variety of operation is in the concept of theFrom Address of an email and the Sender of the email.

Some email servers will accept the From Address as being the Sender, and somededuce the Sender automatically, and some require the Sender to be specifiedexplicitly.

In general, the Sender is the actual originator of the email message. The FromAddress, in contrast, is simply a header line in the email that may or may notbe taken to mean anything. The From Address can often be left out completely.Spammers can easily spoof the From Address. ISPs try to ensure that spammerscannot spoof the Sender.

The following information provides the exact rules that FormMail uses for thesetwo email concepts. When reading, bear in mind that FormMail attempts to makea form submission look like it has come from the user filling in the form, eventhough the email is actually being sent by the webserver software on your server.

This means that FormMail attempts to set the From Address to the valueof the "email" fieldspecified on your form and entered by the person filling in and submitting the form.

FormMail attempts to set the From Address this way to assist you. Inmost cases, it's helpful to you that, when you receive a form submission email, itsFrom Address is shown as the person submitting the form.

Detailed Description

The following sections describe the exact rules used by FormMailfor setting the From Address and the Sender of the emails it sends.

For form results...

The From Address for form results is usually the email addressentered by the user on the form (the "email" field). If you setFromAddr in mail_options, the "From" address is set to this valueand the Sender is also set to this value. If you do not setFromAddr, then the "From" address is set to the "email" field(plus the "realname" field) from the form and no Sender is specified byFormMail.

From version 8.05 of FormMail, if you specify FIXED_SENDER, FormMail sets the Sender to the value you've specified.

For alert messages...

Both From Address and Sender are set according to therules for theFROM_USERconfiguration.

Logic Process

Following is a complete description of the emailing logic. This logicis quite complicated because different servers have different and,often, conflicting requirements.

We define these concepts:

Sender

is an email address that is deemed to be sending an email.

From Address

is an email address that is deemed to be the "From Line" (the From: line in the header) in an email being sent.

For Form Results (not Alert Messages and Auto Responses)

If the "FromAddr" feature is used by the form, then:

  1. Set Sender to the FromAddr value; and
  2. Set From Address to FromAddr value.

If the "FromAddr" feature is not used by the form, then:

  1. If SET_SENDER_FROM_EMAIL is set to true, then Set Sender to the "email" value from the form, otherwise, leave Sender unset; and
  2. Set From Address to the realname + email fields from the form.

From version 8.05 of FormMail, if FIXED_SENDER is set and is not empty, then set the Sender to the value of FIXED_SENDER.

For Alert Messages (not Form Results)

if FROM_USER (in FormMail's configuration) is set and is not empty, then:

if it has the value "NONE", then: do not set either Sender or From Address values

otherwise:

set Sender and From Address values to the FROM_USER value;

if FROM_USER is not set or it's empty, then: set Sender and From Address values to a fake address on the server (FormMail@domain).

For Auto Responses (not Form Results or Alert Messages)

if the "FromAddr" feature is used in the "autorespond" field, then:

set Sender and From Address values to the FromAddr value

otherwise:

if FROM_USER is set and is not empty, then:

if it has the value "NONE", then: do not set either Sender or From Address values

otherwise:

set Sender and From Address values to the FROM_USER value; if FROM_USER is not set or it's empty, then: set Sender and From Address values to a fake address on the server (FormMail@domain).

For all emails (form results, alerts, auto responses)

If SENDMAIL_F_OPTION is true:

if Sender is set, specify its value with the -f option in the mail command.

If INI_SET_FROM is true:

if Sender is set, specify its value to the "sendmail_from" PHP option.

In every case:

set the "From:" line of the email header to the value of the From Address.

See Also

  • FROM_USER
  • SET_SENDER_FROM_EMAIL
  • SENDMAIL_F_OPTION
  • INI_SET_FROM
  • FIXED_SENDER
  • Index

    From Address vs Sender (2024)
    Top Articles
    8x20, 8x40 Shipping containers storage container for rent or sale - general for sale - by dealer - craigslist
    Convert ounces to liter
    Wal-Mart 2516 Directory
    Zavvi Discount Code → 55% Off in September 2024
    Transfer and Pay with Wells Fargo Online®
    15 Cloud Tattoo Meaning Symbolism- Reflecting Change and Transience
    Cpt 90677 Reimbursem*nt 2023
    What Was D-Day Weegy
    Chukchansi Webcam
    Stellaris Mid Game
    1v1 lol unblocked Game- Play Unblocked Game Online for Free!
    Espn Masters Leaderboard
    Busted Newspaper Hart County Ky
    Folsom Gulch Covid
    Exquisitely Stuffed Terraria
    Violent Night Showtimes Near The Riviera Cinema
    Gopher Hockey Forum
    Osrs Mahogany Homes Calc
    Comenity Pay Cp
    Ofw Pinoy Channel Su
    Txu Cash Back Loyalty Card Balance
    Koal Bargain Bin
    Red Lobster cleared to exit bankruptcy under new owner Fortress
    Hdtoday.comtv
    Moss Adams Client Portal
    Morgan Plus Four 2024 review
    Beaver Dam Locations Ark Lost Island
    Loterie Midi 30 Aujourd'hui
    New Homes in Waterleigh | Winter Garden, FL | D.R. Horton
    Maven 5X30 Scope
    Drive Mad Yandex
    Bolly2Tolly Sale
    Barber Gym Quantico Hours
    Stanley Steemer Medford Oregon
    Kino am Raschplatz - Vorschau
    Jasminx Fansly
    Xdefiant turn off crossplay ps5 cмотреть на RuClips.ru
    Solve x^2+2x-24=0 | Microsoft Math Solver
    O2 eSIM guide | Download your eSIM | The Drop
    Dvax Message Board
    Milepslit Ga
    Colonial Interceptor
    6173770487
    How To Get Mini Tusks In Blox Fruits
    ARK Fjordur: Ultimate Resource Guide | Where to Find All Materials - Games Fuze
    Lost Pizza Nutrition
    Tacoma Craigslist Free
    Ap Chem 2022 Frq Scoring Guidelines
    Hit Entertainment Wiki
    R Warhammer Competitive
    my Control Vitality Female Support Complex (10 ml)
    Latest Posts
    Article information

    Author: Sen. Emmett Berge

    Last Updated:

    Views: 6079

    Rating: 5 / 5 (60 voted)

    Reviews: 91% of readers found this page helpful

    Author information

    Name: Sen. Emmett Berge

    Birthday: 1993-06-17

    Address: 787 Elvis Divide, Port Brice, OH 24507-6802

    Phone: +9779049645255

    Job: Senior Healthcare Specialist

    Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

    Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.