Show / Hide Table of Contents

Class EMailDataHandler

Inheritance
Object
DataHandlerBase
EMailDataHandler
Implements
IDataHandler
IWebObject
IPlugin
Inherited Members
DataHandlerBase.isPreLoadMode
DataHandlerBase._dataCarriers
DataHandlerBase._mandatoryDataCarriers
DataHandlerBase._primaryCurrent
DataHandlerBase._currentHistoryItem
DataHandlerBase._config
DataHandlerBase._id
DataHandlerBase._hasLoaded
DataHandlerBase._isNew
DataHandlerBase.GetRawDataValue(String, String)
DataHandlerBase.GetRawDataValue(String)
DataHandlerBase.Clear()
DataHandlerBase.New()
DataHandlerBase.Delete()
DataHandlerBase.OnBeforeDataBind()
DataHandlerBase.OnBeforeValidate()
DataHandlerBase.CheckMandatoryData(String)
DataHandlerBase.DataCarriersToExpose
DataHandlerBase.ExposeToClient
DataHandlerBase.Id
DataHandlerBase.HasLoaded
DataHandlerBase.IsNew
DataHandlerBase.DataCarriers
DataHandlerBase.PrimaryCurrent
DataHandlerBase.CurrentHistoryItem
DataHandlerBase.EventArgument
DataHandlerBase.EventTarget
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Web.Data
Assembly: SuperOffice.CRMWeb.dll
Syntax
public class EMailDataHandler : DataHandlerBase, IDataHandler, IWebObject, IPlugin

Constructors

EMailDataHandler()

Declaration
public EMailDataHandler()

Methods

CreateEmailFromDocumentEntity(DocumentEntity)

Declaration
public static EMailEntity CreateEmailFromDocumentEntity(DocumentEntity documentEntity)
Parameters
Type Name Description
DocumentEntity documentEntity
Returns
Type Description
EMailEntity

GenerateNewEmailFromTemplate(Int32, String, Boolean, Int32, Int32, Int32, Int32, String)

Declaration
public static EMailEntity GenerateNewEmailFromTemplate(int templateId, string language, bool includeSignature, int contactId, int personId, int saleId, int projectId, string subject)
Parameters
Type Name Description
Int32 templateId
String language
Boolean includeSignature
Int32 contactId
Int32 personId
Int32 saleId
Int32 projectId
String subject
Returns
Type Description
EMailEntity

GetAppointmentEntityCurrent()

Declaration
public static AppointmentEntity GetAppointmentEntityCurrent()
Returns
Type Description
AppointmentEntity

GetAttachment(Int32, String, String)

Declaration
public static EMailAttachment GetAttachment(int messageId, string folderName, string attachmentId)
Parameters
Type Name Description
Int32 messageId
String folderName
String attachmentId
Returns
Type Description
EMailAttachment

GetEMailAsStream(Int32, String, Boolean)

Declaration
public static Stream GetEMailAsStream(int messageServerId, string folderName, bool stripAttachments)
Parameters
Type Name Description
Int32 messageServerId
String folderName
Boolean stripAttachments
Returns
Type Description
Stream

GetEmlStreamFromEMailEntity(EMailEntity, Stream)

Declaration
public static Stream GetEmlStreamFromEMailEntity(EMailEntity mailEntity, Stream templateStream)
Parameters
Type Name Description
EMailEntity mailEntity
Stream templateStream
Returns
Type Description
Stream

GetNewPopulatedEmailEntity()

Declaration
public EMailEntity GetNewPopulatedEmailEntity()
Returns
Type Description
EMailEntity

GetParsedFolder(String)

Declaration
public static string GetParsedFolder(string rawName)
Parameters
Type Name Description
String rawName
Returns
Type Description
String

GetPlainHTMLBody(String)

Declaration
public static string GetPlainHTMLBody(string source)
Parameters
Type Name Description
String source
Returns
Type Description
String

GetRecipientCurrent(String, EMailAddress[])

Declaration
public static EMailAddress[] GetRecipientCurrent(string currentName, EMailAddress[] existingValue)
Parameters
Type Name Description
String currentName
EMailAddress[] existingValue
Returns
Type Description
EMailAddress[]

GetSessionValue(String)

Declaration
public static string GetSessionValue(string key)
Parameters
Type Name Description
String key
Returns
Type Description
String

GetSubjectCurrent(String)

Declaration
public static string GetSubjectCurrent(string existing)
Parameters
Type Name Description
String existing
Returns
Type Description
String

GetSuperOfficeBody(MailEntity, AppointmentEntity, String, Int32)

Declaration
public static void GetSuperOfficeBody(MailEntity entity, AppointmentEntity appointment, string originalMail, int templateId = 0)
Parameters
Type Name Description
MailEntity entity
AppointmentEntity appointment
String originalMail
Int32 templateId

Initialize(XmlNode, String)

Declaration
public override void Initialize(XmlNode config, string id)
Parameters
Type Name Description
XmlNode config
String id
Overrides
DataHandlerBase.Initialize(XmlNode, String)

Load(String)

Declaration
public override void Load(string CarrierId)
Parameters
Type Name Description
String CarrierId
Overrides
DataHandlerBase.Load(String)

New(String)

Declaration
public override void New(string CarrierId)
Parameters
Type Name Description
String CarrierId
Overrides
DataHandlerBase.New(String)

Save()

Declaration
public override object Save()
Returns
Type Description
Object
Overrides
DataHandlerBase.Save()

SaveAttachmentToFile(Int32, String)

Declaration
public static string SaveAttachmentToFile(int serverId, string attachmentId)
Parameters
Type Name Description
Int32 serverId
String attachmentId
Returns
Type Description
String

SaveEMailToFile(Int32, String, String, Boolean)

Declaration
public static string SaveEMailToFile(int serverId, string folder, string filename, bool stripAttachments)
Parameters
Type Name Description
Int32 serverId
String folder
String filename
Boolean stripAttachments
Returns
Type Description
String

SetSessionValue(String, String)

Declaration
public static void SetSessionValue(string key, string value)
Parameters
Type Name Description
String key
String value

Implements

IDataHandler
IWebObject
SuperOffice.Factory.IPlugin
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top