public class SmtpClient extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/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=10.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() |
SmtpClient(java.lang.Object instance)
Internal constructor.
|
SmtpClient(java.lang.String host) |
SmtpClient(java.lang.String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSendCompleted(SendCompletedEventHandler handler) |
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() |
X509CertificateCollection |
getClientCertificates() |
ICredentialsByHost |
getCredentials() |
SmtpDeliveryFormat |
getDeliveryFormat() |
SmtpDeliveryMethod |
getDeliveryMethod() |
boolean |
getEnableSsl() |
java.lang.String |
getHost() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
java.lang.String |
getPickupDirectoryLocation() |
int |
getPort() |
ServicePoint |
getServicePoint() |
java.lang.String |
getTargetName() |
int |
getTimeout() |
boolean |
getUseDefaultCredentials() |
void |
removeSendCompleted(SendCompletedEventHandler handler) |
void |
Send(MailMessage message) |
void |
Send(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body) |
void |
SendAsync(MailMessage message,
NetObject userToken) |
void |
SendAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body,
NetObject userToken) |
void |
SendAsyncCancel() |
Task |
SendMailAsync(MailMessage message) |
Task |
SendMailAsync(MailMessage message,
CancellationToken cancellationToken) |
Task |
SendMailAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body) |
Task |
SendMailAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body,
CancellationToken cancellationToken) |
void |
setCredentials(ICredentialsByHost Credentials) |
void |
setDeliveryFormat(SmtpDeliveryFormat DeliveryFormat) |
void |
setDeliveryMethod(SmtpDeliveryMethod DeliveryMethod) |
void |
setEnableSsl(boolean EnableSsl) |
void |
setHost(java.lang.String Host) |
void |
setJCOInstance(JCObject instance) |
void |
setPickupDirectoryLocation(java.lang.String PickupDirectoryLocation) |
void |
setPort(int Port) |
void |
setTargetName(java.lang.String TargetName) |
void |
setTimeout(int Timeout) |
void |
setUseDefaultCredentials(boolean 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,
OutOfMemoryException,
EventSourceException,
ArgumentOutOfRangeException,
InvalidOperationException,
CultureNotFoundException
public SmtpClient(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic SmtpClient(java.lang.String host)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
OutOfMemoryException,
EventSourceException,
ArgumentOutOfRangeException,
InvalidOperationException,
CultureNotFoundException
public SmtpClient(java.lang.String host,
int port)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
EventSourceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionEventSourceExceptionpublic void addSendCompleted(SendCompletedEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic 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,
ObjectDisposedException,
PlatformNotSupportedException,
NullReferenceException,
NotSupportedException,
ArgumentNullException,
ArgumentException,
AggregateException,
TaskCanceledException
public X509CertificateCollection getClientCertificates() throws java.lang.Throwable
java.lang.Throwablepublic ICredentialsByHost getCredentials() throws java.lang.Throwable
java.lang.Throwablepublic SmtpDeliveryFormat getDeliveryFormat() throws java.lang.Throwable
java.lang.Throwablepublic SmtpDeliveryMethod getDeliveryMethod() throws java.lang.Throwable
java.lang.Throwablepublic boolean getEnableSsl()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getHost()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getPickupDirectoryLocation()
throws java.lang.Throwable
java.lang.Throwablepublic int getPort()
throws java.lang.Throwable
java.lang.Throwablepublic ServicePoint getServicePoint() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, OverflowException, IndexOutOfRangeException, FormatException, OutOfMemoryException, ExternalException, UnreachableException, UriFormatException, InvalidTimeZoneException, RankException, ArrayTypeMismatchException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionOverflowExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionExternalExceptionUnreachableExceptionUriFormatExceptionInvalidTimeZoneExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic java.lang.String getTargetName()
throws java.lang.Throwable
java.lang.Throwablepublic int getTimeout()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getUseDefaultCredentials()
throws java.lang.Throwable
java.lang.Throwablepublic void removeSendCompleted(SendCompletedEventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void Send(MailMessage message) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, ThreadStateException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, ArgumentOutOfRangeException, AggregateException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionEventSourceExceptionInvalidOperationExceptionTaskSchedulerExceptionThreadStateExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionArgumentOutOfRangeExceptionAggregateExceptionpublic void Send(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body)
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
NotSupportedException,
ArgumentOutOfRangeException,
FormatException,
IndexOutOfRangeException,
OutOfMemoryException,
EventSourceException,
InvalidOperationException,
ArrayTypeMismatchException,
TaskSchedulerException,
TaskCanceledException,
AggregateException
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionEventSourceExceptionInvalidOperationExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionpublic void SendAsync(MailMessage message, NetObject userToken) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, InvalidOperationException, TaskSchedulerException, ThreadStateException, ObjectDisposedException, OperationCanceledException, TaskCanceledException, ArgumentOutOfRangeException, AggregateException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionEventSourceExceptionInvalidOperationExceptionTaskSchedulerExceptionThreadStateExceptionObjectDisposedExceptionOperationCanceledExceptionTaskCanceledExceptionArgumentOutOfRangeExceptionAggregateExceptionpublic void SendAsync(java.lang.String from,
java.lang.String recipients,
java.lang.String subject,
java.lang.String body,
NetObject userToken)
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
ArgumentNullException,
ArgumentException,
NotSupportedException,
ArgumentOutOfRangeException,
FormatException,
IndexOutOfRangeException,
OutOfMemoryException,
EventSourceException,
InvalidOperationException,
ArrayTypeMismatchException,
TaskSchedulerException,
TaskCanceledException,
AggregateException
java.lang.ThrowablePlatformNotSupportedExceptionObjectDisposedExceptionArgumentNullExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionEventSourceExceptionInvalidOperationExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionpublic void SendAsyncCancel()
throws java.lang.Throwable,
PlatformNotSupportedException,
ObjectDisposedException,
NullReferenceException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
AggregateException
public Task SendMailAsync(MailMessage message) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, EventSourceException, TaskSchedulerException, TaskCanceledException, AggregateException, NullReferenceException
public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, EventSourceException, TaskSchedulerException, ThreadStateException, OperationCanceledException, TaskCanceledException, AggregateException, NullReferenceException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionEventSourceExceptionTaskSchedulerExceptionThreadStateExceptionOperationCanceledExceptionTaskCanceledExceptionAggregateExceptionNullReferenceExceptionpublic 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, OutOfMemoryException, EventSourceException, InvalidOperationException, ArrayTypeMismatchException, TaskSchedulerException, TaskCanceledException, AggregateException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionEventSourceExceptionInvalidOperationExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionNullReferenceExceptionpublic 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, OutOfMemoryException, EventSourceException, InvalidOperationException, ArrayTypeMismatchException, TaskSchedulerException, TaskCanceledException, AggregateException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFormatExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionEventSourceExceptionInvalidOperationExceptionArrayTypeMismatchExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionNullReferenceExceptionpublic void setCredentials(ICredentialsByHost Credentials) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public void setDeliveryFormat(SmtpDeliveryFormat DeliveryFormat) throws java.lang.Throwable
java.lang.Throwablepublic void setDeliveryMethod(SmtpDeliveryMethod DeliveryMethod) throws java.lang.Throwable
java.lang.Throwablepublic void setEnableSsl(boolean EnableSsl)
throws java.lang.Throwable
java.lang.Throwablepublic void setHost(java.lang.String Host)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setPickupDirectoryLocation(java.lang.String PickupDirectoryLocation)
throws java.lang.Throwable
java.lang.Throwablepublic void setPort(int Port)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setTargetName(java.lang.String TargetName)
throws java.lang.Throwable
java.lang.Throwablepublic void setTimeout(int Timeout)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException
public void setUseDefaultCredentials(boolean UseDefaultCredentials)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException