Method SendEmail
SendEmail(string, string, string, string, string, string[], string[], bool)
Sends an email.
Declaration
public void SendEmail(string recipientName, string recipientAddress, string subject, string bodyText, string hiddenCopyAddress = "", string[] filesToAttach = null, string[] namesForTheAttachedFiles = null, bool showMessages = true)
Parameters
Type | Name | Description |
---|---|---|
string | recipientName | Name of the recipient |
string | recipientAddress | Email address of the recipient. |
string | subject | Subject of the email. |
string | bodyText | Body of the email. |
string | hiddenCopyAddress | Email address to get hidden copy of the sent email. |
string[] | filesToAttach | Filenames that should be attached to the email. Filenames containing comma aren't supported. |
string[] | namesForTheAttachedFiles | More meaningful names for the attached files. Filenames containing comma aren't supported. |
bool | showMessages | Indicates whether to show error or warning messages related to the operation. |