Hi,
Here is example how get Cc and Bcc from OpenPop.
Now I want get ReplyTo value as Cc and Bcc but get error.
public string Bcc { get; set; } public string Cc { get; set; } public string ReplyTo { get; set; }
Hi aspcsharp,
ReplyTo returns single RfcMailAddress not List "public RfcMailAddress ReplyTo { get; }". So there is no need for foreach loop. You need to chenge the code like below.
OpenPop.Mime.Header.RfcMailAddress replyTo = message.Headers.ReplyTo; email.ReplyTo = replyTo.ToString();
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.