Class CPEmailBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
Methods to send and manage email.
public abstract class CPEmailBaseClass
- Inheritance
-
CPEmailBaseClass
- Inherited Members
Properties
fromAddressDefault
Returns the site's default email from address
public abstract string fromAddressDefault { get; }
Property Value
Methods
send(string, string, string, string)
Sends an email to an email address. Return false if the email could not be sent
public abstract void send(string toAddress, string fromAddress, string subject, string body)
Parameters
send(string, string, string, string, bool)
Sends an email to an email address. Return false if the email could not be sent
public abstract void send(string toAddress, string fromAddress, string subject, string body, bool sendImmediately)
Parameters
send(string, string, string, string, bool, bool)
Sends an email to an email address. Return false if the email could not be sent
public abstract void send(string toAddress, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML)
Parameters
send(string, string, string, string, bool, bool, ref string)
Sends an email to an email address. Return false if the email could not be sent
public abstract void send(string toAddress, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML, ref string adminErrorMessage)
Parameters
toAddressstringfromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbooladminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendForm(string, string, string)
Sends an email that includes all the form elements in the current webpage response.
public abstract void sendForm(string toAddress, string fromAddress, string subject)
Parameters
sendForm(string, string, string, ref string)
Sends an email that includes all the form elements in the current webpage response.
public abstract void sendForm(string toAddress, string fromAddress, string subject, ref string adminErrorMessage)
Parameters
toAddressstringfromAddressstringsubjectstringadminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendGroup(List<int>, string, string, string)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<int> groupIdList, string fromAddress, string subject, string body)
Parameters
sendGroup(List<int>, string, string, string, bool)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<int> groupIdList, string fromAddress, string subject, string body, bool sendImmediately)
Parameters
sendGroup(List<int>, string, string, string, bool, bool)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<int> groupIdList, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML)
Parameters
groupIdListList<int>fromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbool
sendGroup(List<int>, string, string, string, bool, bool, ref string)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<int> groupIdList, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML, ref string adminErrorMessage)
Parameters
groupIdListList<int>fromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbooladminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendGroup(List<string>, string, string, string)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<string> groupNameList, string fromAddress, string subject, string body)
Parameters
sendGroup(List<string>, string, string, string, bool)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<string> groupNameList, string fromAddress, string subject, string body, bool sendImmediately)
Parameters
sendGroup(List<string>, string, string, string, bool, bool)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<string> groupNameList, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML)
Parameters
groupNameListList<string>fromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbool
sendGroup(List<string>, string, string, string, bool, bool, ref string)
Sends an email to everyone in a list of groups.
public abstract void sendGroup(List<string> groupNameList, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML, ref string adminErrorMessage)
Parameters
groupNameListList<string>fromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbooladminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendGroup(int, string, string, string)
Sends an email to everyone in a group.
public abstract void sendGroup(int groupId, string fromAddress, string subject, string body)
Parameters
sendGroup(int, string, string, string, bool)
Sends an email to everyone in a group.
public abstract void sendGroup(int groupId, string fromAddress, string subject, string body, bool sendImmediately)
Parameters
sendGroup(int, string, string, string, bool, bool)
Sends an email to everyone in a group.
public abstract void sendGroup(int groupId, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML)
Parameters
sendGroup(int, string, string, string, bool, bool, ref string)
Sends an email to everyone in a group.
public abstract void sendGroup(int groupId, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML, ref string adminErrorMessage)
Parameters
groupIdintfromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbooladminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendGroup(string, string, string, string)
Sends an email to everyone in a group. (legacy support: if groupName is a valid guid it is assumed to be)
public abstract void sendGroup(string groupName, string fromAddress, string subject, string body)
Parameters
sendGroup(string, string, string, string, bool)
Sends an email to everyone in a group. (legacy support: if groupName is a valid guid it is assumed to be)
public abstract void sendGroup(string groupName, string fromAddress, string subject, string body, bool sendImmediately)
Parameters
sendGroup(string, string, string, string, bool, bool)
Sends an email to everyone in a group. (legacy support: if groupName is a valid guid it is assumed to be)
public abstract void sendGroup(string groupName, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML)
Parameters
sendGroup(string, string, string, string, bool, bool, ref string)
Sends an email to everyone in a group. (legacy support: if groupName is a valid guid it is assumed to be)
public abstract void sendGroup(string groupName, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML, ref string adminErrorMessage)
Parameters
groupNamestringfromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbooladminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendPassword(string)
Send a list of usernames and passwords to the account(s) that include the given email address. If false, the email could not be sent.
public abstract void sendPassword(string userEmailAddress)
Parameters
userEmailAddressstring
sendPassword(string, ref string)
Send a list of usernames and passwords to the account(s) that include the given email address. If false, the email could not be sent.
public abstract void sendPassword(string userEmailAddress, ref string adminErrorMessage)
Parameters
userEmailAddressstringadminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendSystem(int)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId)
Parameters
emailIdint
sendSystem(int, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, bool sendImmediately)
Parameters
sendSystem(int, string)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, string additionalCopy)
Parameters
sendSystem(int, string, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, string additionalCopy, bool sendImmediately)
Parameters
sendSystem(int, string, int)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, string additionalCopy, int additionalUserID)
Parameters
sendSystem(int, string, int, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, string additionalCopy, int additionalUserID, bool sendImmediately)
Parameters
sendSystem(int, string, int, ref string)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, string additionalCopy, int additionalUserID, ref string adminErrorMessage)
Parameters
emailIdintadditionalCopystringadditionalUserIDintadminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendSystem(int, string, int, ref string, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(int emailId, string additionalCopy, int additionalUserID, ref string adminErrorMessage, bool sendImmediately)
Parameters
emailIdintadditionalCopystringadditionalUserIDintadminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendImmediatelybool
sendSystem(string)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName)
Parameters
emailNamestring
sendSystem(string, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, bool sendImmediately)
Parameters
sendSystem(string, string)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, string additionalCopy)
Parameters
sendSystem(string, string, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, string additionalCopy, bool sendImmediately)
Parameters
sendSystem(string, string, int)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, string additionalCopy, int additionalUserID)
Parameters
sendSystem(string, string, int, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, string additionalCopy, int additionalUserID, bool sendImmediately)
Parameters
sendSystem(string, string, int, ref string)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, string additionalCopy, int additionalUserID, ref string adminErrorMessage)
Parameters
emailNamestringadditionalCopystringadditionalUserIDintadminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendSystem(string, string, int, ref string, bool)
Send a system email record. If the EmailIdOrName field contains a number, it is assumed first to be an Id. If false, the email could not be sent
public abstract void sendSystem(string emailName, string additionalCopy, int additionalUserID, ref string adminErrorMessage, bool sendImmediately)
Parameters
emailNamestringadditionalCopystringadditionalUserIDintadminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendImmediatelybool
sendUser(int, string, string, string)
Send an email a user.
public abstract void sendUser(int toUserId, string fromAddress, string subject, string body)
Parameters
sendUser(int, string, string, string, bool)
Send an email a user.
public abstract void sendUser(int toUserId, string fromAddress, string subject, string body, bool sendImmediately)
Parameters
sendUser(int, string, string, string, bool, bool)
Send an email a user.
public abstract void sendUser(int toUserId, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML)
Parameters
sendUser(int, string, string, string, bool, bool, ref string)
Send an email a user.
public abstract void sendUser(int toUserId, string fromAddress, string subject, string body, bool sendImmediately, bool bodyIsHTML, ref string adminErrorMessage)
Parameters
toUserIdintfromAddressstringsubjectstringbodystringsendImmediatelyboolbodyIsHTMLbooladminErrorMessagestringIf not empty, this is an error message appropriate for an administrator, not a public user.
sendUser(string, string, string, string)
use setUser with argument int toUserId
[Obsolete("use setUser with argument int toUserId", false)]
public abstract void sendUser(string ToUserID, string FromAddress, string Subject, string Body)
Parameters
sendUser(string, string, string, string, bool)
use setUser with argument int toUserId
[Obsolete("use setUser with argument int toUserId", false)]
public abstract void sendUser(string ToUserID, string FromAddress, string Subject, string Body, bool SendImmediately)
Parameters
sendUser(string, string, string, string, bool, bool)
use setUser with argument int toUserId
[Obsolete("use setUser with argument int toUserId", false)]
public abstract void sendUser(string ToUserID, string FromAddress, string Subject, string Body, bool SendImmediately, bool BodyIsHTML)
Parameters
validateEmail(string)
validate an email address (just check if it is a valid format) Returns true if email is valid, false if invalid.
public abstract bool validateEmail(string toAddress)
Parameters
toAddressstring
Returns
validateUserEmail(int)
validate a user's email address. Returns true if the user has a valid email address, else returns false.
public abstract bool validateUserEmail(int toUserId)
Parameters
toUserIdint