How to change mail from address using x header

The X-Header!

To change the From address using an X-Header, you'll need to use the X-From or X-Sender header, depending on the email client or server you're using. Here are some examples:

Using X-From header:

  1. In your email client (e.g., Gmail, Outlook, Thunderbird), compose a new email or reply to an existing one.
  2. In the email header, add the following line:
    X-From: [email protected]

    Replace [email protected] with the desired new From address.

Using X-Sender header:

  1. In your email client (e.g., Gmail, Outlook, Thunderbird), compose a new email or reply to an existing one.
  2. In the email header, add the following line:
    X-Sender: [email protected]

    Replace [email protected] with the desired new From address.

Using X-Envelope-From header:

  1. In your email client (e.g., Gmail, Outlook, Thunderbird), compose a new email or reply to an existing one.
  2. In the email header, add the following line:
    X-Envelope-From: [email protected]

    Replace [email protected] with the desired new From address.

Note: The X-Header is not a standard header, and its support may vary across different email clients and servers. Some email clients or servers might ignore or reject emails with non-standard headers.

Additional considerations:

Before using these headers, make sure to check with your email client or server administrator to ensure that they are supported and won't cause any issues.