Class MailAddressProvider
Utility functions associated with SuperOffice.CRM.Mail.MailAddress, but which depends on a database to be useful.
Inheritance
System.Object
MailAddressProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Mail
Assembly: SoDataBase.dll
Syntax
public static class MailAddressProvider
Methods
GetAddress(Int32)
Gets the email-address associated with the Email-account owned by the specified associate.
Declaration
public static string GetAddress(int associateId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | associateId |
Returns
Type | Description |
---|---|
System.String | null if not found |
GetAddressForCurrentAssociate()
Gets the email-address associated with the Email-account owned by the current associate.
Declaration
public static string GetAddressForCurrentAssociate()
Returns
Type | Description |
---|---|
System.String | null if not found |
GetDefaultFromAddress()
Get mail address of currently logged in user
Declaration
public static MailAddress GetDefaultFromAddress()
Returns
Type | Description |
---|---|
SuperOffice.CRM.Mail.MailAddress |