| MailControllerSendMail Method (MailReceiver, UserInfo, Int32, DataObject, Boolean, DictionaryString, String) |
Sends an email to a single receiver (person).
Namespace:
Omada.OE.AppLogic
Assembly:
Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntaxpublic void SendMail(
MailReceiver receiver,
UserInfo sender,
int mailTemplateId,
DataObject sourceObject,
bool logMail,
Dictionary<string, string> extraVarReplacement = null
)
Parameters
- receiver
- Type: Omada.OE.ModelMailReceiver
- sender
- Type: Omada.OE.ModelUserInfo
Sender of the email.
If null the mail sender specified in the customer settings is used.
- mailTemplateId
- Type: SystemInt32
Id of mail template which subject and message is retrieved from.
- sourceObject
- Type: Omada.OE.ModelDataObject
Source object is used to format the mail message and subject.
- logMail
- Type: SystemBoolean
- extraVarReplacement (Optional)
- Type: System.Collections.GenericDictionaryString, String
The keys are additional mail variables which will be replaced with the dictionary value
See Also