<param name="contentStream">A readable <see cref="T:System.IO.Stream" /> that contains the content for this attachment.</param>
<param name="contentType">A <see cref="T:System.Net.Mime.ContentType" /> that describes the data in <paramref name="contentStream" />.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="contentType" /> is <see langword="null" />.
--or-
+ <paramref name="contentType" /> is <see langword="null" />.
+-or-
<paramref name="contentStream" /> is <see langword="null" />.</exception>
</member>
<member name="M:System.Net.Mail.Attachment.#ctor(System.IO.Stream,System.String)">
<exception cref="T:System.ArgumentException">
<paramref name="address" /> is <see cref="F:System.String.Empty" /> ("").</exception>
<exception cref="T:System.FormatException">
- <paramref name="address" /> is not in a recognized format.
--or-
+ <paramref name="address" /> is not in a recognized format.
+-or-
<paramref name="address" /> contains non-ASCII characters.</exception>
</member>
<member name="M:System.Net.Mail.MailAddress.#ctor(System.String,System.String,System.Text.Encoding)">
<param name="displayName">A <see cref="T:System.String" /> that contains the display name associated with <paramref name="address" />.</param>
<param name="displayNameEncoding">The <see cref="T:System.Text.Encoding" /> that defines the character set used for <paramref name="displayName" />.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="address" /> is <see langword="null" />.
--or-
+ <paramref name="address" /> is <see langword="null" />.
+-or-
<paramref name="displayName" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
- <paramref name="address" /> is <see cref="F:System.String.Empty" /> ("").
--or-
+ <paramref name="address" /> is <see cref="F:System.String.Empty" /> ("").
+-or-
<paramref name="displayName" /> is <see cref="F:System.String.Empty" /> ("").</exception>
<exception cref="T:System.FormatException">
- <paramref name="address" /> is not in a recognized format.
--or-
+ <paramref name="address" /> is not in a recognized format.
+-or-
<paramref name="address" /> contains non-ASCII characters.</exception>
</member>
<member name="P:System.Net.Mail.MailAddress.Address">
<param name="from">A <see cref="T:System.Net.Mail.MailAddress" /> that contains the address of the sender of the email message.</param>
<param name="to">A <see cref="T:System.Net.Mail.MailAddress" /> that contains the address of the recipient of the email message.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="from" /> is <see langword="null" />.
--or-
+ <paramref name="from" /> is <see langword="null" />.
+-or-
<paramref name="to" /> is <see langword="null" />.</exception>
<exception cref="T:System.FormatException">
<paramref name="from" /> or <paramref name="to" /> is malformed.</exception>
<param name="from">A <see cref="T:System.String" /> that contains the address of the sender of the email message.</param>
<param name="to">A <see cref="T:System.String" /> that contains the addresses of the recipients of the email message. Multiple email addresses must be separated with a comma character (",").</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="from" /> is <see langword="null" />.
--or-
+ <paramref name="from" /> is <see langword="null" />.
+-or-
<paramref name="to" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
- <paramref name="from" /> is <see cref="F:System.String.Empty" /> ("").
--or-
+ <paramref name="from" /> is <see cref="F:System.String.Empty" /> ("").
+-or-
<paramref name="to" /> is <see cref="F:System.String.Empty" /> ("").</exception>
<exception cref="T:System.FormatException">
<paramref name="from" /> or <paramref name="to" /> is malformed.</exception>
<param name="subject">A <see cref="T:System.String" /> that contains the subject text.</param>
<param name="body">A <see cref="T:System.String" /> that contains the message body.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="from" /> is <see langword="null" />.
--or-
+ <paramref name="from" /> is <see langword="null" />.
+-or-
<paramref name="to" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
- <paramref name="from" /> is <see cref="F:System.String.Empty" /> ("").
--or-
+ <paramref name="from" /> is <see cref="F:System.String.Empty" /> ("").
+-or-
<paramref name="to" /> is <see cref="F:System.String.Empty" /> ("").</exception>
<exception cref="T:System.FormatException">
<paramref name="from" /> or <paramref name="to" /> is malformed.</exception>
<param name="message">A <see cref="T:System.Net.Mail.MailMessage" /> that contains the message to send.</param>
<exception cref="T:System.ArgumentNullException">
<paramref name="message" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
- -or-
- <see cref="P:System.Net.Mail.MailMessage.From" /> is <see langword="null" />.
- -or-
- There are no recipients specified in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, and <see cref="P:System.Net.Mail.MailMessage.Bcc" /> properties.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
+ <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
+-or-
+<see cref="P:System.Net.Mail.MailMessage.From" /> is <see langword="null" />.
+-or-
+There are no recipients specified in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, and <see cref="P:System.Net.Mail.MailMessage.Bcc" /> properties.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
<exception cref="T:System.ObjectDisposedException">This object has been disposed.</exception>
- <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
- -or-
- Authentication failed.
- -or-
- The operation timed out.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.</exception>
+ <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
+-or-
+Authentication failed.
+-or-
+The operation timed out.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.</exception>
<exception cref="T:System.Net.Mail.SmtpFailedRecipientException">The <paramref name="message" /> could not be delivered to one of the recipients in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, or <see cref="P:System.Net.Mail.MailMessage.Bcc" />.</exception>
<exception cref="T:System.Net.Mail.SmtpFailedRecipientsException">The <paramref name="message" /> could not be delivered to two or more of the recipients in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, or <see cref="P:System.Net.Mail.MailMessage.Bcc" />.</exception>
</member>
<param name="subject">A <see cref="T:System.String" /> that contains the subject line for the message.</param>
<param name="body">A <see cref="T:System.String" /> that contains the message body.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="from" /> is <see langword="null" />.
--or-
+ <paramref name="from" /> is <see langword="null" />.
+-or-
<paramref name="recipients" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
- <paramref name="from" /> is <see cref="F:System.String.Empty" />.
--or-
+ <paramref name="from" /> is <see cref="F:System.String.Empty" />.
+-or-
<paramref name="recipients" /> is <see cref="F:System.String.Empty" />.</exception>
- <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
+ <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
<exception cref="T:System.ObjectDisposedException">This object has been disposed.</exception>
- <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
- -or-
- Authentication failed.
- -or-
- The operation timed out.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.</exception>
+ <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
+-or-
+Authentication failed.
+-or-
+The operation timed out.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.</exception>
<exception cref="T:System.Net.Mail.SmtpFailedRecipientException">The <paramref name="message" /> could not be delivered to one of the recipients in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, or <see cref="P:System.Net.Mail.MailMessage.Bcc" />.</exception>
<exception cref="T:System.Net.Mail.SmtpFailedRecipientsException">The <paramref name="message" /> could not be delivered to two or more of the recipients in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, or <see cref="P:System.Net.Mail.MailMessage.Bcc" />.</exception>
</member>
<param name="message">A <see cref="T:System.Net.Mail.MailMessage" /> that contains the message to send.</param>
<param name="userToken">A user-defined object that is passed to the method invoked when the asynchronous operation completes.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="message" /> is <see langword="null" />.
--or-
+ <paramref name="message" /> is <see langword="null" />.
+-or-
<see cref="P:System.Net.Mail.MailMessage.From" /> is <see langword="null" />.</exception>
- <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
- -or-
- There are no recipients specified in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, and <see cref="P:System.Net.Mail.MailMessage.Bcc" /> properties.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
+ <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
+-or-
+There are no recipients specified in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, and <see cref="P:System.Net.Mail.MailMessage.Bcc" /> properties.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
<exception cref="T:System.ObjectDisposedException">This object has been disposed.</exception>
- <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
- -or-
- Authentication failed.
- -or-
- The operation timed out.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.
- -or-
- The <paramref name="message" /> could not be delivered to one or more of the recipients in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, or <see cref="P:System.Net.Mail.MailMessage.Bcc" />.</exception>
+ <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
+-or-
+Authentication failed.
+-or-
+The operation timed out.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.
+-or-
+The <paramref name="message" /> could not be delivered to one or more of the recipients in <see cref="P:System.Net.Mail.MailMessage.To" />, <see cref="P:System.Net.Mail.MailMessage.CC" />, or <see cref="P:System.Net.Mail.MailMessage.Bcc" />.</exception>
</member>
<member name="M:System.Net.Mail.SmtpClient.SendAsync(System.String,System.String,System.String,System.String,System.Object)">
<summary>Sends an email message to an SMTP server for delivery. The message sender, recipients, subject, and message body are specified using <see cref="T:System.String" /> objects. This method does not block the calling thread and allows the caller to pass an object to the method that is invoked when the operation completes.</summary>
<param name="body">A <see cref="T:System.String" /> that contains the message body.</param>
<param name="userToken">A user-defined object that is passed to the method invoked when the asynchronous operation completes.</param>
<exception cref="T:System.ArgumentNullException">
- <paramref name="from" /> is <see langword="null" />.
--or-
+ <paramref name="from" /> is <see langword="null" />.
+-or-
<paramref name="recipient" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
- <paramref name="from" /> is <see cref="F:System.String.Empty" />.
--or-
+ <paramref name="from" /> is <see cref="F:System.String.Empty" />.
+-or-
<paramref name="recipient" /> is <see cref="F:System.String.Empty" />.</exception>
- <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
+ <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Net.Mail.SmtpClient" /> has a <see cref="Overload:System.Net.Mail.SmtpClient.SendAsync" /> call in progress.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Host" /> is equal to the empty string ("").
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.Network" /> and <see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero, a negative number, or greater than 65,535.</exception>
<exception cref="T:System.ObjectDisposedException">This object has been disposed.</exception>
- <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
- -or-
- Authentication failed.
- -or-
- The operation timed out.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
- -or-
- <see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.
- -or-
- The message could not be delivered to one or more of the recipients in <paramref name="recipients" />.</exception>
+ <exception cref="T:System.Net.Mail.SmtpException">The connection to the SMTP server failed.
+-or-
+Authentication failed.
+-or-
+The operation timed out.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true" /> but the <see cref="P:System.Net.Mail.SmtpClient.DeliveryMethod" /> property is set to <see cref="F:System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory" /> or <see cref="F:System.Net.Mail.SmtpDeliveryMethod.PickupDirectoryFromIis" />.
+-or-
+<see cref="P:System.Net.Mail.SmtpClient.EnableSsl" /> is set to <see langword="true," /> but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.
+-or-
+The message could not be delivered to one or more of the recipients in <paramref name="recipients" />.</exception>
</member>
<member name="M:System.Net.Mail.SmtpClient.SendAsyncCancel">
<summary>Cancels an asynchronous operation to send an email message.</summary>
<param name="body">A <see cref="T:System.String" /> that contains the message body.</param>
<returns>The task object representing the asynchronous operation.</returns>
<exception cref="T:System.ArgumentNullException">
- <paramref name="from" /> is <see langword="null" />.
--or-
+ <paramref name="from" /> is <see langword="null" />.
+-or-
<paramref name="recipients" /> is <see langword="null" />.</exception>
<exception cref="T:System.ArgumentException">
- <paramref name="from" /> is <see cref="F:System.String.Empty" />.
--or-
+ <paramref name="from" /> is <see cref="F:System.String.Empty" />.
+-or-
<paramref name="recipients" /> is <see cref="F:System.String.Empty" />.</exception>
</member>
<member name="P:System.Net.Mail.SmtpClient.ServicePoint">
<summary>Gets the network connection used to transmit the email message.</summary>
<returns>A <see cref="T:System.Net.ServicePoint" /> that connects to the <see cref="P:System.Net.Mail.SmtpClient.Host" /> property used for SMTP.</returns>
<exception cref="T:System.InvalidOperationException">
- <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" /> or the empty string ("").
--or-
+ <see cref="P:System.Net.Mail.SmtpClient.Host" /> is <see langword="null" /> or the empty string ("").
+-or-
<see cref="P:System.Net.Mail.SmtpClient.Port" /> is zero.</exception>
</member>
<member name="P:System.Net.Mail.SmtpClient.TargetName">
<summary>The delivery format to use for sending outgoing email using the Simple Mail Transport Protocol (SMTP).</summary>
</member>
<member name="F:System.Net.Mail.SmtpDeliveryFormat.International">
- <summary>A delivery format where non-ASCII characters in the envelope and header fields used in the Simple Mail Transport Protocol (SMTP) for mail messages are encoded with UTF-8 characters.
- The extensions to support international email are defined in IETF RFC 6530, 6531, and 6532.</summary>
+ <summary>A delivery format where non-ASCII characters in the envelope and header fields used in the Simple Mail Transport Protocol (SMTP) for mail messages are encoded with UTF-8 characters.
+The extensions to support international email are defined in IETF RFC 6530, 6531, and 6532.</summary>
</member>
<member name="F:System.Net.Mail.SmtpDeliveryFormat.SevenBit">
- <summary>A delivery format using 7-bit ASCII.
- The traditional delivery format used in the Simple Mail Transport Protocol (SMTP) for mail messages.</summary>
+ <summary>A delivery format using 7-bit ASCII.
+The traditional delivery format used in the Simple Mail Transport Protocol (SMTP) for mail messages.</summary>
</member>
<member name="T:System.Net.Mail.SmtpDeliveryMethod">
<summary>Specifies how email messages are delivered.</summary>
<returns>A <see cref="T:System.String" /> that contains the file name.</returns>
</member>
<member name="M:System.Net.Mime.ContentDisposition.GetHashCode">
- <summary>Determines the hash code of the specified <see cref="T:System.Net.Mime.ContentDisposition" /> object</summary>
+ <summary>Determines the hash code of the specified <see cref="T:System.Net.Mime.ContentDisposition" /> object.</summary>
<returns>An integer hash value.</returns>
</member>
<member name="P:System.Net.Mime.ContentDisposition.Inline">
<see langword="true" /> if the content-type headers are the same; otherwise <see langword="false" />.</returns>
</member>
<member name="M:System.Net.Mime.ContentType.GetHashCode">
- <summary>Determines the hash code of the specified <see cref="T:System.Net.Mime.ContentType" /> object</summary>
+ <summary>Determines the hash code of the specified <see cref="T:System.Net.Mime.ContentType" /> object.</summary>
<returns>An integer hash value.</returns>
</member>
<member name="P:System.Net.Mime.ContentType.MediaType">