Question: In C# I have a method that sends an email via a gmail account.
When I open the email in microsoft outlook the from address is shown as the gmail address and not the strFromAddress that I use in the headers. 

```
SmtpClient smtp = new SmtpClient();
        smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
        smtp.UseDefaultCredentials = true;
        smtp.EnableSsl = true;
        smtp.Host = "smtp.gmail.com";
        smtp.Port = 587;
        smtp.Credentials = new NetworkCredential("***@gmail.com", "*****");

            var strFromAddress = "no-repl@demuynck-printing.be";
            var strToAddress = "sander@demuynck-media.be";
            var strSubject = "Album: '" + lbltitel.Text + "' bestelling";
            var strBody = "<html><head>";
            // new instance of MailMessage
            MailMessage mailMessage = new MailMessage();

            // Sender Address
            mailMessage.From = new MailAddress(strFromAddress);
            // mailMessage.Headers("Selexion Clix Demuynck <no-reply@demuynck-printing.be>");
           // mailMessage.Bcc.Add(new MailAddress("no-reply@demuynck-printing.be"));

            // Recepient Address
            mailMessage.To.Add(new MailAddress(strToAddress));
            mailMessage.Headers.Add("Reply-To", "info@demuynck-printing.be");
            // Subject 
            mailMessage.Subject = strSubject;

            // Body
            mailMessage.Body = strBody;

            // format of mail message
            mailMessage.IsBodyHtml = true;
            // new instance of Smtpclient

                smtp.Send(mailMessage);

```

Answer: 
Just set the displayname property on the MailAddress like so:

```
MailAddress fromAddress = new MailAddress("user@domaina.com","no-reply@domainb.com");

```
GMail will change the 'from' address to the account used to login to the SMTP server, unless the email-address used in 'from' field is verified to belong to the same owner. So, in your gmail preferences, just add and verify this specific from address.