Package system.net.mail
Class MailMessage
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.net.mail.MailMessage
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class MailMessage extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Net.Mail.MailMessage, System.Net.Mail, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Net.Mail.MailMessage
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Net.Mail, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Net.Mailstatic java.lang.String
className
Qualified class name: System.Net.Mail.MailMessagestatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MailMessage()
MailMessage(java.lang.Object instance)
Internal constructor.MailMessage(java.lang.String from, java.lang.String to)
MailMessage(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String body)
MailMessage(MailAddress from, MailAddress to)
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Net.Mail, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Net.Mail- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Net.Mail.MailMessage- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MailMessage
public MailMessage(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
MailMessage
public MailMessage() throws java.lang.Throwable, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, ArgumentException, EventSourceException, ArgumentOutOfRangeException
-
MailMessage
public MailMessage(MailAddress from, MailAddress to) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
MailMessage
public MailMessage(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String body) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, FormatException, EventSourceException
-
MailMessage
public MailMessage(java.lang.String from, java.lang.String to) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, FormatException, RankException, ArrayTypeMismatchException, EventSourceException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MailMessage cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMailMessage
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MailMessage
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentNullException, NotSupportedException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
NotSupportedException
ArgumentException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getIsBodyHtml
public boolean getIsBodyHtml() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIsBodyHtml
public void setIsBodyHtml(boolean IsBodyHtml) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHeaders
public NameValueCollection getHeaders() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, InvalidOperationException, EventSourceException
-
getAlternateViews
public AlternateViewCollection getAlternateViews() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
getAttachments
public AttachmentCollection getAttachments() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException
-
getDeliveryNotificationOptions
public DeliveryNotificationOptions getDeliveryNotificationOptions() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDeliveryNotificationOptions
public void setDeliveryNotificationOptions(DeliveryNotificationOptions DeliveryNotificationOptions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getFrom
public MailAddress getFrom() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setFrom
public void setFrom(MailAddress From) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
getReplyTo
public MailAddress getReplyTo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReplyTo
public void setReplyTo(MailAddress ReplyTo) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSender
public MailAddress getSender() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSender
public void setSender(MailAddress Sender) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBcc
public MailAddressCollection getBcc() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCC
public MailAddressCollection getCC() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getReplyToList
public MailAddressCollection getReplyToList() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getTo
public MailAddressCollection getTo() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPriority
public MailPriority getPriority() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPriority
public void setPriority(MailPriority Priority) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBodyTransferEncoding
public TransferEncoding getBodyTransferEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBodyTransferEncoding
public void setBodyTransferEncoding(TransferEncoding BodyTransferEncoding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBody
public java.lang.String getBody() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBody
public void setBody(java.lang.String Body) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, CultureNotFoundException, FormatException
-
getSubject
public java.lang.String getSubject() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSubject
public void setSubject(java.lang.String Subject) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, OutOfMemoryException, OverflowException
-
getBodyEncoding
public Encoding getBodyEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBodyEncoding
public void setBodyEncoding(Encoding BodyEncoding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHeadersEncoding
public Encoding getHeadersEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHeadersEncoding
public void setHeadersEncoding(Encoding HeadersEncoding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSubjectEncoding
public Encoding getSubjectEncoding() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSubjectEncoding
public void setSubjectEncoding(Encoding SubjectEncoding) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-