How to send mail onbehalf of the other person in C#
Please Give Me Answer Fast..
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 25, 2014, 10:04 PM EST
use it
MailAddress mailFrom = new MailAddress("[email protected]");
MailAddress mailTo = new MailAddress("[email protected]");
MailAddress mailReplyTo = new MailAddress("[email protected]");
MailMessage message = new MailMessage();
message.From = mailFrom; message.To.Add(mailTo);
//here you could add multiple recepients
message.ReplyToList.Add(mailReplyTo); //here you could add multiple replyTo adress
Parmar Jagdish58 reputationPosted Dec 25, 2014, 10:55 PM EST