What sender address when use SmtpClient?
See original GitHub issueThis is maybe a stupid question, forgive me please.
I use this started a server:
var options = new SmtpServerOptionsBuilder()
.ServerName("localhost")
.Port(25, 587)
.Build();
var smtpServer = new SmtpServer.SmtpServer(options, ServiceProvider.Default);
await smtpServer.StartAsync(CancellationToken.None);
so how to set the sender address in SmtpClient?
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
SmtpClient Class (System.Net.Mail)
Sends the specified email message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using String...
Read more >c# - Using System.Net.Mail.SmtpClient, change the SMTP ...
The FROM address used in System.Net.Mail is used for both the SMTP transaction (Envelope-From) and the MailMessage from header value.
Read more >Sending a Simple Email Using SmtpClient in C#
The MailMessage constructor take two objects of the MailAddress class as the sender address and receiver address. SmtpClient sends and receives ...
Read more >SmtpMail.Sender Property
This property indicates the original email sender. This is what you see as the "FROM" in most mail clients. Reply-To. This property indicates...
Read more >Forcing the from address when postfix relays over smtp
This is how to really do it in postfix. This config changes sender addresses from both local originated, and relayed SMTP mail traffic:....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yes that is correct.
If you wanted to forward the message you would need to handle that yourself.
I think I got it, it can be a message receiver, accept message in, but never process out. right?