Click or drag to resize

Email Class

Use this class for email sending
Inheritance Hierarchy
SystemObject
  SICEmail

Namespace:  SIC
Assembly:  SIC (in SIC.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public class Email

The Email type exposes the following members.

Constructors
  NameDescription
Public methodEmail(SMTP)
Create Email object with SMTP settings parameter
Public methodEmail(SMTP, Email)
Create Email object with SMTP settings parameter and Email settings parameter
Public methodEmail(SMTP, EmailSimple)
Create Email object with SMTP settings parameter and simple Email settings parameter
Top
Properties
  NameDescription
Private propertyMailMessage
Public propertySettingEmail
Email setting
Private propertySettingSMTP
Private propertySMTPClient
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSend
Send email by settings of constructor
Private methodSend(MailMessage)
Public methodSend(Email)
Send email with all parameter
Public methodSend(EmailSimple)
Send email with simple Email setting
Public methodSend(String, String)
Send email with address to from settings of constructor
Public methodSend(String, String, String, String, ListAttachment)
Send email with parameter address from and to, subject (email title) and body (email text) and optional email attachments
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Examples
Simple initialize for Email object
var lEmail = new SIC.Email(SOWIApp.Management.Data.Settings.Mail.SettingSMTP);
See Also

Reference