Question: How can I manipulate the "from" field in an email and make the "to" user see something different then the actual.

Example: 

really from 

```
From: TStamper@yahoo.com

```

but they see

```
From: Tremayne "Top Dog" Stamper

```

I've heard its from manipulating SMTP, but really not sure how accurate that is or how it can be done

Answer: 
There are a couple of different things to consider here. If you just want to display a different name or e-mail address, set the "From" header of the message (the message from address) to the e-mail address with the display name in brackets as such:

From: Joe Example <joe@example.com>

Remember that the "from" line in the message header is only used for display purposes. The actual routing is done by the SMTP envelope address. This is what the SMTP servers actually use to transmit the message between servers. This can be different from the message "from" header. If you have a custom SMTP engine, just have it use one address in the SMTP envelope and a different one in the "from" header on the actual message.

There are a number of legitimate reasons that you might want to do this, but please refrain from nefarious purposes.

Note that a correct syntax example can be found in [RFC 5322 - A.2.1](https://www.rfc-editor.org/rfc/rfc5322.html#appendix-A)
This my 2c straight out of the code - written in C#

```
    public static void SendSpam(string message, string to)
    {
        System.Net.Mail.MailMessage myMessage = new System.Net.Mail.MailMessage("Fake Name", to);
        myMessage.Subject = "SPAM";
        myMessage.Body = message;
        System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("mail.mailserver.com", 25);
        System.Net.NetworkCredential c = new System.Net.NetworkCredential("realusername@mailserver.com", "realpassword");
        client.Credentials = c;
        client.Send(myMessage);
    }

```