public class SmtpClient extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Net.Mail.SmtpClient
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Net.Mail, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Net.Mail
|
static java.lang.String |
className
Qualified class name: System.Net.Mail.SmtpClient
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SmtpClient()
Initializes a new instance by invoking the .NET constructor.
|
SmtpClient(java.lang.Object instance)
Internal constructor.
|
SmtpClient(java.lang.String host)
Initializes a new instance by invoking the .NET constructor.
|
SmtpClient(java.lang.String host,
int port)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSendCompleted(SendCompletedEventHandler handler)
Invokes the .NET member addSendCompleted.
|
static SmtpClient |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SmtpClient, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Dispose()
Invokes the .NET member Dispose.
|
X509CertificateCollection |
getClientCertificates()
Gets the value of the .NET property ClientCertificates.
|
ICredentialsByHost |
getCredentials()
Gets the value of the .NET property Credentials.
|
SmtpDeliveryFormat |
getDeliveryFormat()
Gets the value of the .NET property DeliveryFormat.
|
SmtpDeliveryMethod |
getDeliveryMethod()
Gets the value of the .NET property DeliveryMethod.
|
boolean |
getEnableSsl()
Gets the value of the .NET property EnableSsl.
|
java.lang.String |
getHost()
Gets the value of the .NET property Host.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
java.lang.String |
getPickupDirectoryLocation()
Gets the value of the .NET property PickupDirectoryLocation.
|
int |
getPort()
Gets the value of the .NET property Port.
|
ServicePoint |
getServicePoint()
Gets the value of the .NET property ServicePoint.
|
java.lang.String |
getTargetName()
Gets the value of the .NET property TargetName.
|
int |
getTimeout()
Gets the value of the .NET property Timeout.
|
boolean |
getUseDefaultCredentials()
Gets the value of the .NET property UseDefaultCredentials.
|
void |
removeSendCompleted(SendCompletedEventHandler handler)
Invokes the .NET member removeSendCompleted.
|
void |
Send(MailMessage message)
Invokes the .NET member Send.
|
void |
Send(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body)
Invokes the .NET member Send.
|
void |
SendAsync(MailMessage message,
NetObject userToken)
Invokes the .NET member SendAsync.
|
void |
SendAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body,
NetObject userToken)
Invokes the .NET member SendAsync.
|
void |
SendAsyncCancel()
Invokes the .NET member SendAsyncCancel.
|
Task |
SendMailAsync(MailMessage message)
Invokes the .NET member SendMailAsync.
|
Task |
SendMailAsync(MailMessage message,
CancellationToken cancellationToken)
Invokes the .NET member SendMailAsync.
|
Task |
SendMailAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body)
Invokes the .NET member SendMailAsync.
|
Task |
SendMailAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body,
CancellationToken cancellationToken)
Invokes the .NET member SendMailAsync.
|
void |
setCredentials(ICredentialsByHost Credentials)
Sets the value of the .NET property Credentials.
|
void |
setDeliveryFormat(SmtpDeliveryFormat DeliveryFormat)
Sets the value of the .NET property DeliveryFormat.
|
void |
setDeliveryMethod(SmtpDeliveryMethod DeliveryMethod)
Sets the value of the .NET property DeliveryMethod.
|
void |
setEnableSsl(boolean EnableSsl)
Sets the value of the .NET property EnableSsl.
|
void |
setHost(java.lang.String Host)
Sets the value of the .NET property Host.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setPickupDirectoryLocation(java.lang.String PickupDirectoryLocation)
Sets the value of the .NET property PickupDirectoryLocation.
|
void |
setPort(int Port)
Sets the value of the .NET property Port.
|
void |
setTargetName(java.lang.String TargetName)
Sets the value of the .NET property TargetName.
|
void |
setTimeout(int Timeout)
Sets the value of the .NET property Timeout.
|
void |
setUseDefaultCredentials(boolean UseDefaultCredentials)
Sets the value of the .NET property UseDefaultCredentials.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SmtpClient()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
EventSourceException,
ArgumentOutOfRangeException,
CultureNotFoundException
java.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic SmtpClient(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic SmtpClient(java.lang.String host)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
InvalidOperationException,
EventSourceException,
ArgumentOutOfRangeException,
CultureNotFoundException
host - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itInvalidOperationException - if the .NET member raises itEventSourceException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic SmtpClient(java.lang.String host,
int port)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
EventSourceException
host - the argument of type java.lang.Stringport - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itpublic void addSendCompleted(SendCompletedEventHandler handler) throws java.lang.Throwable
handler - the argument of type SendCompletedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SmtpClient cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SmtpClient, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSmtpClient instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic X509CertificateCollection getClientCertificates() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ICredentialsByHost getCredentials() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic SmtpDeliveryFormat getDeliveryFormat() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic SmtpDeliveryMethod getDeliveryMethod() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getEnableSsl()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getHost()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic java.lang.String getPickupDirectoryLocation()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getPort()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ServicePoint getServicePoint() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, NotSupportedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ExternalException, UnreachableException, UriFormatException, InvalidTimeZoneException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotSupportedException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itUnreachableException - if the .NET member raises itUriFormatException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic java.lang.String getTargetName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getTimeout()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getUseDefaultCredentials()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeSendCompleted(SendCompletedEventHandler handler) throws java.lang.Throwable
handler - the argument of type SendCompletedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Send(MailMessage message) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, FormatException, EventSourceException, SmtpException, MissingMethodException, TargetInvocationException, SerializationException, SocketException, IOException, UnreachableException, OverflowException, NotImplementedException
message - the argument of type MailMessagejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itSmtpException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itSerializationException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itUnreachableException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic void Send(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
FormatException,
IndexOutOfRangeException,
OutOfMemoryException,
EventSourceException,
SocketException,
SmtpException,
CultureNotFoundException,
SerializationException,
IOException,
ArgumentNullException,
UnreachableException,
OverflowException,
NotImplementedException
from - the argument of type java.lang.Stringrecipients - the argument of type java.lang.Stringsubject - the argument of type java.lang.Stringbody - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itSocketException - if the .NET member raises itSmtpException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSerializationException - if the .NET member raises itIOException - if the .NET member raises itArgumentNullException - if the .NET member raises itUnreachableException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itpublic void SendAsync(MailMessage message, NetObject userToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, SmtpException, IndexOutOfRangeException, OutOfMemoryException, FormatException, EventSourceException, MissingMethodException, TargetInvocationException, SerializationException, UnreachableException, OverflowException, NotImplementedException, ArgumentNullException, AbandonedMutexException, SocketException, IOException, SecurityException
message - the argument of type MailMessageuserToken - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSmtpException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itEventSourceException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itSerializationException - if the .NET member raises itUnreachableException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itArgumentNullException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSocketException - if the .NET member raises itIOException - if the .NET member raises itSecurityException - if the .NET member raises itpublic void SendAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body,
NetObject userToken)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
FormatException,
IndexOutOfRangeException,
OutOfMemoryException,
EventSourceException,
SmtpException,
CultureNotFoundException,
SerializationException,
UnreachableException,
OverflowException,
NotImplementedException,
AbandonedMutexException,
SocketException,
SecurityException
from - the argument of type java.lang.Stringrecipients - the argument of type java.lang.Stringsubject - the argument of type java.lang.Stringbody - the argument of type java.lang.StringuserToken - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itSmtpException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSerializationException - if the .NET member raises itUnreachableException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSocketException - if the .NET member raises itSecurityException - if the .NET member raises itpublic void SendAsyncCancel()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic Task SendMailAsync(MailMessage message) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, MulticastNotSupportedException, ObjectDisposedException, SmtpException, OutOfMemoryException, FormatException, OverflowException, NotImplementedException, ArrayTypeMismatchException, SocketException, SecurityException
message - the argument of type MailMessagejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSmtpException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itSocketException - if the .NET member raises itSecurityException - if the .NET member raises itpublic Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, MulticastNotSupportedException, SmtpException, OutOfMemoryException, FormatException, CultureNotFoundException, SerializationException, UnreachableException, OverflowException, NotImplementedException, AbandonedMutexException, SocketException, SecurityException, TaskSchedulerException
message - the argument of type MailMessagecancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itSmtpException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itFormatException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSerializationException - if the .NET member raises itUnreachableException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itAbandonedMutexException - if the .NET member raises itSocketException - if the .NET member raises itSecurityException - if the .NET member raises itTaskSchedulerException - if the .NET member raises itpublic Task SendMailAsync(java.lang.String from, java.lang.String recipients, java.lang.String subject, java.lang.String body) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, FormatException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, OutOfMemoryException, EventSourceException, InvalidOperationException, MulticastNotSupportedException, ObjectDisposedException, SmtpException, OverflowException, NotImplementedException, SocketException, SecurityException
from - the argument of type java.lang.Stringrecipients - the argument of type java.lang.Stringsubject - the argument of type java.lang.Stringbody - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSmtpException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itSocketException - if the .NET member raises itSecurityException - if the .NET member raises itpublic Task SendMailAsync(java.lang.String from, java.lang.String recipients, java.lang.String subject, java.lang.String body, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, FormatException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, OutOfMemoryException, EventSourceException, InvalidOperationException, MulticastNotSupportedException, ObjectDisposedException, SmtpException, OverflowException, NotImplementedException, SocketException, SecurityException
from - the argument of type java.lang.Stringrecipients - the argument of type java.lang.Stringsubject - the argument of type java.lang.Stringbody - the argument of type java.lang.StringcancellationToken - the argument of type CancellationTokenjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itEventSourceException - if the .NET member raises itInvalidOperationException - if the .NET member raises itMulticastNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itSmtpException - if the .NET member raises itOverflowException - if the .NET member raises itNotImplementedException - if the .NET member raises itSocketException - if the .NET member raises itSecurityException - if the .NET member raises itpublic void setCredentials(ICredentialsByHost Credentials) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
Credentials - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setDeliveryFormat(SmtpDeliveryFormat DeliveryFormat) throws java.lang.Throwable
DeliveryFormat - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDeliveryMethod(SmtpDeliveryMethod DeliveryMethod) throws java.lang.Throwable
DeliveryMethod - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setEnableSsl(boolean EnableSsl)
throws java.lang.Throwable
EnableSsl - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setHost(java.lang.String Host)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
Host - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setPickupDirectoryLocation(java.lang.String PickupDirectoryLocation)
throws java.lang.Throwable
PickupDirectoryLocation - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPort(int Port)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
Port - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setTargetName(java.lang.String TargetName)
throws java.lang.Throwable
TargetName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setTimeout(int Timeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
Timeout - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setUseDefaultCredentials(boolean UseDefaultCredentials)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException
UseDefaultCredentials - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises it