-
Notifications
You must be signed in to change notification settings - Fork 1
OutlookCOMM.NET
Helpers | IMailUtilities |
MailUtilitiesBase | MailUtilities |
Helpers class
Method which separates a string containing multiple addresses using the given delimiter.
Name | Description |
---|---|
addresses |
System.String The string containing the addresses |
delimiter |
System.Char The delimiter used to separate the addresses |
A collection of addresses
IMailUtilities interface
The attachment collection used to store data attached to the mail.
The string which contains the blind carbon copy (BCC) recipients of the mail.
The string which contains the body text of the mail.
The string which contains the carbon copy (CC) recipients of the mail.
The string which contains the delimiter to use when splitting the addresses.
The string which contains the from address of the mail.
Method which creates and opens an EML file.
The result of the operation
The string which contains the subject line of the mail.
The string which contains the recipients of the mail.
The boolean which determine whether is necessary to add the X-Unsent header to the mail.
The boolean which determine whether is necessary to use the From address configured in Outlook.
MailUtilitiesBase abstract class
Constructor with no parameters required for COM initialization.
Constructor which initializes a MailUtilitiesBase object with passed information.
Name | Description |
---|---|
from |
System.String The from address of the mail |
to |
System.String The recipients address (or addresses) of the mail |
cc |
System.String The CC recipients of the mail |
bcc |
System.String The BCC recipients of the mail |
subject |
System.String The subject line of the mail |
body |
System.String The body text of the mail |
Method which allows to add a file to the Attachments collection.
Name | Description |
---|---|
filePath |
System.String The path of the file to add |
fileName |
System.String The text to use as file name |
The attachment collection used to store data attached to the mail.
The key contains the path of the file added as an attachment while the value contains the text to use as file name for the attachment (can be empty).
The string which contains the blind carbon copy (BCC) recipients of the mail.
The string which contains the body text of the mail.
The string which contains the carbon copy (CC) recipients of the mail.
The string which contains the delimiter to use when splitting the addresses.
The default value is ';'.
Method which finalizes the created EML file.
Creates a copy of the created EML file with a known file name (SMTPClient.Send uses random GUIDs as file names when saving the EML to the disk). If UseOutlookAccount is true then X-Sender and From headers will be removed so that the mail account defined in Outlook is used as From address.
The path of finalized EML file
The string which contains the from address of the mail.
Method which initializes passed MailMessage Attachments property with the attachments added to the Attachments collection.
Name | Description |
---|---|
message |
System.Net.Mail.MailMessage@ The MailMessage to initialize |
Method which initializes passed MailMessage object with the information specified in MailUtilitiesBase properties.
Name | Description |
---|---|
message |
System.Net.Mail.MailMessage@ The MailMessage to initialize |
Method which prepares the temp folder where the EML file will be stored.
Recursively deletes previously created temporary files and folders to avoid possible conflicts when creating the new EML file.
Method which creates and opens an EML file.
The result of the operation
The string which contains the subject line of the mail.
The string which contains the recipients of the mail.
The boolean which determine whether is necessary to add the X-Unsent header to the mail.
The default value is true.
The boolean which determine whether is necessary to use the From address configured in Outlook.
The default value is true.
MailUtilities class
Constructor which initializes a MailUtilities object with passed information. OutlookCOMM.Core.MailUtilitiesBase.#ctor(System.String,System.String,System.String,System.String,System.String,System.String)
Method which creates an EML file. OutlookCOMM.Core.MailUtilitiesBase.SaveEML