C # send an Email by Email. The recipient will notify you when the Email is opened,
Directly run the Code:
// Receipt address var receept = "Enter the address you want to return the Receipt"; // instantiate two necessary MailMessage mail = new MailMessage (); SmtpClient smtp = new SmtpClient (); // send email address mail. from = new MailAddress ("Send email address"); // recipient (you can send emails in groups. to. add (new MailAddress ("1402173344@qq.com"); // whether to send mail in HTML format. isBodyHtml = true; // The encoding format of the topic is mail. subjectEncoding = Encoding. UTF8; // The mail subject. subject = "test the sender's title"; // The content encoding format is mail. bodyEncoding = Encoding. UTF8; // mail priority. priority = MailPriority. normal; // sends the content with an image tag. It is used to send the email address you entered after the recipient opens it. body = @ "get the IP address of the user who opened the email. The image is automatically generated by the server:
As an intern, I encountered a small setback when I joined the first company. After looking for a long time, I did not find a way. I asked my predecessors and the bosses who brought me
Of course, the help of the big guys gave me a lot of inspiration. I thought about writing it down first, and I forgot it when I needed it later.
You can also record your learning pace when you are new to the company,
In short, this is a small trick. After reading it, please give me more advice.
The first blog. I really look forward to learning better knowledge in the Community. Can you share it with me if you have a better way?