प्रेषक ReplayTo
फ़ील्ड में एक अलग ईमेल कैसे जोड़ सकता हूं? लगता है MailMessage.ReplyTo
बहिष्कृत है इसलिए मैं ReplyToList
का उपयोग करने की कोशिश कर रहा हूं।एएसपीनेट मेल उत्तर दें
लेकिन यह मुझे बता रहा है कि
Property or indexer 'System.Net.Mail.MailMessage.ReplyToList' cannot be assigned to -- it is read only
यहाँ अब तक मेरी कोड है:
var reply = new MailAddressCollection();
reply.Add("[email protected]");
MailMessage mail = new MailMessage(senderEmail,usr.Email,"subject","message");
mail.ReplyToList = reply;
var smtp = new SmtpClient();
smtp.Send(mail);
अधिक जांच [इस] (http://stackoverflow.com/questions/21436827/unable-to-add-reply-to के लिए -इन-मेल हेडर-सी तेज) – stom