Skip to content

Note about Dispose affecting Attachments #2902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xml/System.Net.Mail/MailMessage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
Use the <xref:System.Net.Mail.MailMessage.AlternateViews%2A> property to specify copies of an email message in different formats. For example, if you send a message in HTML, you might also want to provide a plain text version in case some of the recipients use email readers that cannot display HTML content. For an example that demonstrates creating a message with alternate views, see <xref:System.Net.Mail.MailMessage.AlternateViews%2A>.
Use the <xref:System.Net.Mail.MailMessage.Attachments%2A> property to add attachments to an email message. For an example that demonstrates creating a message with an attachment, see <xref:System.Net.Mail.MailMessage.Attachments%2A>.
Use the <xref:System.Net.Mail.MailMessage.Attachments%2A> property to add attachments to an email message. For an example that demonstrates creating a message with an attachment, see <xref:System.Net.Mail.MailMessage.Attachments%2A>. Calling Dispose on the MailMessage also calls Dispose on each referenced Attachment.
After assembling your email message, you can send it by using the <xref:System.Net.Mail.SmtpClient.Send%2A> or <xref:System.Net.Mail.SmtpClient.SendAsync%2A> methods.
Expand Down Expand Up @@ -1408,4 +1408,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>