When I create a MailMessage object I want the From to be "noreply@domain.com" and the display name should be my original name can I do it in rebex Mailmessage object????
Yes, it is possible, just use the MailAddress class like this:
MailMessage mail = new MailMessage(); mail.From = new MailAddress("noreply@domain.com", "Chuck Norris");
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
Applications:
If you need immediate assistance, please contact us directly.