System.Net.Mail
14 wrapped types. Load them with using { "System.Net.Mail" }. Click a class to open it.
AlternateView class · extends AttachmentBase
System.Net.Mail.AlternateView · assembly System.Net.Mail
Implements: IDisposable
Constructors
new AlternateView(string fileName) |
new AlternateView(string fileName, string mediaType) |
new AlternateView(string fileName, ContentType contentType) |
new AlternateView(Stream contentStream) |
new AlternateView(Stream contentStream, string mediaType) |
new AlternateView(Stream contentStream, ContentType contentType) |
Ring: new AlternateView(args) uses one constructor; the others are chosen by the parameter names: new AlternateView().@New([ :param = value ]) or dnNew("AlternateView",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LinkedResources | LinkedResourceCollection | read | o.LinkedResources |
BaseUri | Uri | read, write | o.BaseUri o.BaseUri = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateAlternateViewFromString | CreateAlternateViewFromString(value)CreateAlternateViewFromString([ :content = … ])CreateAlternateViewFromString([ :content = …, :contentType = … ])CreateAlternateViewFromString([ :content = …, :contentEncoding = …, :mediaType = … ]) | static AlternateView CreateAlternateViewFromString(string content)static AlternateView CreateAlternateViewFromString(string content, Encoding contentEncoding, string mediaType)static AlternateView CreateAlternateViewFromString(string content, ContentType contentType) |
Members of the base class are inherited.
AlternateViewCollection class sealed · extends Collection<AlternateView>
System.Net.Mail.AlternateViewCollection · assembly System.Net.Mail
Implements: IEnumerable, IList, ICollection, IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.getCount() |
Indexer
o.Item(int index) → AlternateView · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | callMethod("Add",[p1]) | void Add(AlternateView item) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | callMethod("Contains",[p1]) | bool Contains(AlternateView item) |
CopyTo | CopyTo(p1,p2) | void CopyTo(AlternateView[] array, int index) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<AlternateView> GetEnumerator() |
IndexOf | callMethod("IndexOf",[p1]) | int IndexOf(AlternateView item) |
Insert | callMethod("Insert",[p1,p2]) | void Insert(int index, AlternateView item) |
Remove | callMethod("Remove",[p1]) | bool Remove(AlternateView item) |
RemoveAt | callMethod("RemoveAt",[p1]) | void RemoveAt(int index) |
Members of the base class are inherited.
Attachment class · extends AttachmentBase
System.Net.Mail.Attachment · assembly System.Net.Mail
Implements: IDisposable
Constructors
new Attachment(string fileName) |
new Attachment(string fileName, string mediaType) |
new Attachment(string fileName, ContentType contentType) |
new Attachment(Stream contentStream, string name) |
new Attachment(Stream contentStream, string name, string mediaType) |
new Attachment(Stream contentStream, ContentType contentType) |
Ring: new Attachment(args) uses one constructor; the others are chosen by the parameter names: new Attachment().@New([ :param = value ]) or dnNew("Attachment",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Name | string | read, write | o.Name o.Name = v |
NameEncoding | Encoding | read, write | o.NameEncoding o.NameEncoding = v |
ContentDisposition | ContentDisposition | read | o.ContentDisposition |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateAttachmentFromString | CreateAttachmentFromString([ :content = …, :name = … ])CreateAttachmentFromString([ :content = …, :contentType = … ])CreateAttachmentFromString([ :content = …, :name = …, :contentEncoding = …, :mediaType = … ]) | static Attachment CreateAttachmentFromString(string content, string name)static Attachment CreateAttachmentFromString(string content, string name, Encoding contentEncoding, string mediaType)static Attachment CreateAttachmentFromString(string content, ContentType contentType) |
Members of the base class are inherited.
AttachmentBase class abstract
System.Net.Mail.AttachmentBase · assembly System.Net.Mail
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ContentStream | Stream | read | o.ContentStream |
ContentId | string | read, write | o.ContentId o.ContentId = v |
ContentType | ContentType | read, write | o.ContentType o.ContentType = v |
TransferEncoding | TransferEncoding | read, write | o.TransferEncoding o.TransferEncoding = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
AttachmentCollection class sealed · extends Collection<Attachment>
System.Net.Mail.AttachmentCollection · assembly System.Net.Mail
Implements: IEnumerable, IList, ICollection, IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.getCount() |
Indexer
o.Item(int index) → Attachment · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | callMethod("Add",[p1]) | void Add(Attachment item) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | callMethod("Contains",[p1]) | bool Contains(Attachment item) |
CopyTo | CopyTo(p1,p2) | void CopyTo(Attachment[] array, int index) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<Attachment> GetEnumerator() |
IndexOf | callMethod("IndexOf",[p1]) | int IndexOf(Attachment item) |
Insert | callMethod("Insert",[p1,p2]) | void Insert(int index, Attachment item) |
Remove | callMethod("Remove",[p1]) | bool Remove(Attachment item) |
RemoveAt | callMethod("RemoveAt",[p1]) | void RemoveAt(int index) |
Members of the base class are inherited.
LinkedResource class · extends AttachmentBase
System.Net.Mail.LinkedResource · assembly System.Net.Mail
Implements: IDisposable
Constructors
new LinkedResource(string fileName) |
new LinkedResource(string fileName, string mediaType) |
new LinkedResource(string fileName, ContentType contentType) |
new LinkedResource(Stream contentStream) |
new LinkedResource(Stream contentStream, string mediaType) |
new LinkedResource(Stream contentStream, ContentType contentType) |
Ring: new LinkedResource(args) uses one constructor; the others are chosen by the parameter names: new LinkedResource().@New([ :param = value ]) or dnNew("LinkedResource",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ContentLink | Uri | read, write | o.ContentLink o.ContentLink = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateLinkedResourceFromString | CreateLinkedResourceFromString(value)CreateLinkedResourceFromString([ :content = … ])CreateLinkedResourceFromString([ :content = …, :contentType = … ])CreateLinkedResourceFromString([ :content = …, :contentEncoding = …, :mediaType = … ]) | static LinkedResource CreateLinkedResourceFromString(string content)static LinkedResource CreateLinkedResourceFromString(string content, Encoding contentEncoding, string mediaType)static LinkedResource CreateLinkedResourceFromString(string content, ContentType contentType) |
Members of the base class are inherited.
LinkedResourceCollection class sealed · extends Collection<LinkedResource>
System.Net.Mail.LinkedResourceCollection · assembly System.Net.Mail
Implements: IEnumerable, IList, ICollection, IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.getCount() |
Indexer
o.Item(int index) → LinkedResource · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | callMethod("Add",[p1]) | void Add(LinkedResource item) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | callMethod("Contains",[p1]) | bool Contains(LinkedResource item) |
CopyTo | CopyTo(p1,p2) | void CopyTo(LinkedResource[] array, int index) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<LinkedResource> GetEnumerator() |
IndexOf | callMethod("IndexOf",[p1]) | int IndexOf(LinkedResource item) |
Insert | callMethod("Insert",[p1,p2]) | void Insert(int index, LinkedResource item) |
Remove | callMethod("Remove",[p1]) | bool Remove(LinkedResource item) |
RemoveAt | callMethod("RemoveAt",[p1]) | void RemoveAt(int index) |
Members of the base class are inherited.
MailAddress class
System.Net.Mail.MailAddress · assembly System.Net.Mail
Constructors
new MailAddress(string address) |
new MailAddress(string address, string displayName) |
new MailAddress(string address, string displayName, Encoding displayNameEncoding) |
Ring: new MailAddress(args) uses one constructor; the others are chosen by the parameter names: new MailAddress().@New([ :param = value ]) or dnNew("MailAddress",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DisplayName | string | read | o.DisplayName |
User | string | read | o.User |
Host | string | read | o.Host |
Address | string | read | o.Address |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Equals | Equals(p1) | bool Equals(object value) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
TryCreate | TryCreate([ :address = …, :result = … ])TryCreate([ :address = …, :displayName = …, :result = … ])TryCreate([ :address = …, :displayName = …, :displayNameEncoding = …, :result = … ]) | static bool TryCreate(string address, out MailAddress result)static bool TryCreate(string address, string displayName, out MailAddress result)static bool TryCreate(string address, string displayName, Encoding displayNameEncoding, out MailAddress result) |
MailAddressCollection class · extends Collection<MailAddress>
System.Net.Mail.MailAddressCollection · assembly System.Net.Mail
Implements: IEnumerable, IList, ICollection
Constructors
new MailAddressCollection() |
Ring: new MailAddressCollection(args) uses one constructor; the others are chosen by the parameter names: new MailAddressCollection().@New([ :param = value ]) or dnNew("MailAddressCollection",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.getCount() |
Indexer
o.Item(int index) → MailAddress · o.SetItem(index,value)
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Add | callMethod("Add",[p1]) | void Add(string addresses)void Add(MailAddress item) |
Clear | callMethod("Clear",[]) | void Clear() |
Contains | callMethod("Contains",[p1]) | bool Contains(MailAddress item) |
CopyTo | CopyTo(p1,p2) | void CopyTo(MailAddress[] array, int index) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator<MailAddress> GetEnumerator() |
IndexOf | callMethod("IndexOf",[p1]) | int IndexOf(MailAddress item) |
Insert | callMethod("Insert",[p1,p2]) | void Insert(int index, MailAddress item) |
Remove | callMethod("Remove",[p1]) | bool Remove(MailAddress item) |
RemoveAt | callMethod("RemoveAt",[p1]) | void RemoveAt(int index) |
ToString | callMethod("ToString",[]) | string ToString() |
Members of the base class are inherited.
MailMessage class
System.Net.Mail.MailMessage · assembly System.Net.Mail
Implements: IDisposable
Constructors
new MailMessage() |
new MailMessage(string from, string to) |
new MailMessage(string from, string to, string subject, string body) |
new MailMessage(MailAddress from, MailAddress to) |
Ring: new MailMessage(args) uses one constructor; the others are chosen by the parameter names: new MailMessage().@New([ :param = value ]) or dnNew("MailMessage",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
From | MailAddress | read, write | o.From o.From = v |
Sender | MailAddress | read, write | o.Sender o.Sender = v |
ReplyTo | MailAddress | read, write | o.ReplyTo o.ReplyTo = v |
ReplyToList | MailAddressCollection | read | o.ReplyToList |
To | MailAddressCollection | read | o.To |
Bcc | MailAddressCollection | read | o.Bcc |
CC | MailAddressCollection | read | o.CC |
Priority | MailPriority | read, write | o.Priority o.Priority = v |
DeliveryNotificationOptions | DeliveryNotificationOptions | read, write | o.DeliveryNotificationOptions o.DeliveryNotificationOptions = v |
Subject | string | read, write | o.Subject o.Subject = v |
SubjectEncoding | Encoding | read, write | o.SubjectEncoding o.SubjectEncoding = v |
Headers | NameValueCollection | read | o.Headers |
HeadersEncoding | Encoding | read, write | o.HeadersEncoding o.HeadersEncoding = v |
Body | string | read, write | o.Body o.Body = v |
BodyEncoding | Encoding | read, write | o.BodyEncoding o.BodyEncoding = v |
BodyTransferEncoding | TransferEncoding | read, write | o.BodyTransferEncoding o.BodyTransferEncoding = v |
IsBodyHtml | bool | read, write | o.IsBodyHtml o.IsBodyHtml = v |
Attachments | AttachmentCollection | read | o.Attachments |
AlternateViews | AlternateViewCollection | read | o.AlternateViews |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
SmtpClient class
System.Net.Mail.SmtpClient · assembly System.Net.Mail
Implements: IDisposable
Constructors
new SmtpClient() |
new SmtpClient(string host) |
new SmtpClient(string host, int port) |
Ring: new SmtpClient(args) uses one constructor; the others are chosen by the parameter names: new SmtpClient().@New([ :param = value ]) or dnNew("SmtpClient",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Host | string | read, write | o.Host o.Host = v |
Port | int | read, write | o.Port o.Port = v |
UseDefaultCredentials | bool | read, write | o.UseDefaultCredentials o.UseDefaultCredentials = v |
Credentials | ICredentialsByHost | read, write | o.Credentials o.Credentials = v |
Timeout | int | read, write | o.Timeout o.Timeout = v |
ServicePoint | ServicePoint | read | o.ServicePoint |
DeliveryMethod | SmtpDeliveryMethod | read, write | o.DeliveryMethod o.DeliveryMethod = v |
DeliveryFormat | SmtpDeliveryFormat | read, write | o.DeliveryFormat o.DeliveryFormat = v |
PickupDirectoryLocation | string | read, write | o.PickupDirectoryLocation o.PickupDirectoryLocation = v |
EnableSsl | bool | read, write | o.EnableSsl o.EnableSsl = v |
ClientCertificates | X509CertificateCollection | read | o.ClientCertificates |
TargetName | string | read, write | o.TargetName o.TargetName = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Dispose | callMethod("Dispose",[]) | void Dispose() |
Send | callMethod("Send",[p1])callMethod("Send",[p1,p2,p3,p4]) | void Send(string from, string recipients, string subject, string body)void Send(MailMessage message) |
SendAsync | SendAsync([ :message = …, :userToken = … ])SendAsync([ :from = …, :recipients = …, :subject = …, :body = …, :userToken = … ]) | void SendAsync(string from, string recipients, string subject, string body, object userToken)void SendAsync(MailMessage message, object userToken) |
SendAsyncCancel | callMethod("SendAsyncCancel",[]) | void SendAsyncCancel() |
SendMailAsync | SendMailAsync(value)SendMailAsync([ :message = … ])SendMailAsync([ :message = …, :cancellationToken = … ])SendMailAsync([ :from = …, :recipients = …, :subject = …, :body = … ])SendMailAsync([ :from = …, :recipients = …, :subject = …, :body = …, :cancellationToken = … ]) | Task SendMailAsync(string from, string recipients, string subject, string body)Task SendMailAsync(MailMessage message)Task SendMailAsync(string from, string recipients, string subject, string body, CancellationToken cancellationToken)Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) |
Events
| Event | Handler type | In Ring |
|---|---|---|
SendCompleted | SendCompletedEventHandler | o.setSendCompletedEvent(code) · o.clearSendCompletedEvent() |
SmtpException class · extends Exception
System.Net.Mail.SmtpException · assembly System.Net.Mail
Implements: ISerializable
Constructors
new SmtpException(SmtpStatusCode statusCode) |
new SmtpException(SmtpStatusCode statusCode, string message) |
new SmtpException() |
new SmtpException(string message) |
new SmtpException(string message, Exception innerException) |
Ring: new SmtpException(args) uses one constructor; the others are chosen by the parameter names: new SmtpException().@New([ :param = value ]) or dnNew("SmtpException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
StatusCode | SmtpStatusCode | read, write | o.StatusCode o.StatusCode = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
Members of the base class are inherited.
SmtpFailedRecipientException class · extends SmtpException
System.Net.Mail.SmtpFailedRecipientException · assembly System.Net.Mail
Implements: ISerializable
Constructors
new SmtpFailedRecipientException() |
new SmtpFailedRecipientException(string message) |
new SmtpFailedRecipientException(string message, Exception innerException) |
new SmtpFailedRecipientException(SmtpStatusCode statusCode, string failedRecipient) |
new SmtpFailedRecipientException(SmtpStatusCode statusCode, string failedRecipient, string serverResponse) |
new SmtpFailedRecipientException(string message, string failedRecipient, Exception innerException) |
Ring: new SmtpFailedRecipientException(args) uses one constructor; the others are chosen by the parameter names: new SmtpFailedRecipientException().@New([ :param = value ]) or dnNew("SmtpFailedRecipientException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
FailedRecipient | string | read | o.FailedRecipient |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
Members of the base class are inherited.
SmtpFailedRecipientsException class · extends SmtpFailedRecipientException
System.Net.Mail.SmtpFailedRecipientsException · assembly System.Net.Mail
Implements: ISerializable
Constructors
new SmtpFailedRecipientsException() |
new SmtpFailedRecipientsException(string message) |
new SmtpFailedRecipientsException(string message, Exception innerException) |
new SmtpFailedRecipientsException(string message, SmtpFailedRecipientException[] innerExceptions) |
Ring: new SmtpFailedRecipientsException(args) uses one constructor; the others are chosen by the parameter names: new SmtpFailedRecipientsException().@New([ :param = value ]) or dnNew("SmtpFailedRecipientsException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
InnerExceptions | SmtpFailedRecipientException[] | read | o.InnerExceptions |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext) |
Members of the base class are inherited.