-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update ns-System.Net.Mail.xml #2420
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,12 +1,20 @@ | ||||||||||
<Namespace Name="System.Net.Mail"> | ||||||||||
<Attributes> | ||||||||||
<Attribute FrameworkAlternate="xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0"> | ||||||||||
<AttributeName>System.Obsolete("SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead")</AttributeName> | ||||||||||
</Attribute> | ||||||||||
</Attributes> | ||||||||||
<Docs> | ||||||||||
<summary>The <see cref="N:System.Net.Mail" /> namespace contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.</summary> | ||||||||||
<remarks> | ||||||||||
<format type="text/markdown"><![CDATA[ | ||||||||||
|
||||||||||
## Remarks | ||||||||||
The <xref:System.Net.Mail.MailMessage> class represents the content of a mail message. The <xref:System.Net.Mail.SmtpClient> class transmits email to the SMTP host that you designate for mail delivery. You can create mail attachments using the <xref:System.Net.Mail.Attachment> class. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
|
||||||||||
[!IMPORTANT] | ||||||||||
We don't recommend that you use the `SmtpClient` class for new development. For more information, see [SmtpClient shouldn't be used](https://github.com/dotnet/platform-compat/blob/master/docs/DE0005.md) on GitHub. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The formatting here is incorrect to produce a note box. The lines should be preceded by |
||||||||||
|
||||||||||
]]></format> | ||||||||||
</remarks> | ||||||||||
<altmember cref="N:System.Net" /> | ||||||||||
|
@@ -20,4 +28,4 @@ | |||||||||
<related type="Article" href="~/docs/framework/network-programming/network-tracing.md">Network Tracing in the .NET Framework</related> | ||||||||||
<related type="Article" href="~/docs/framework/network-programming/security-in-network-programming.md">Security in Network Programming</related> | ||||||||||
</Docs> | ||||||||||
</Namespace> | ||||||||||
</Namespace> |
Uh oh!
There was an error while loading. Please reload this page.