C # send an Email by Email. The recipient will notify you when the Email is opened,

Source: Internet
Author: User
Tags mailmessage smtpclient

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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.