diff --git a/OutlookCOMM.COM/MailUtilities.cs b/OutlookCOMM.COM/MailUtilities.cs
index e0eaaa7..72100ce 100644
--- a/OutlookCOMM.COM/MailUtilities.cs
+++ b/OutlookCOMM.COM/MailUtilities.cs
@@ -8,36 +8,24 @@
namespace OutlookCOMM.COM
{
- [Guid("69C85C8D-DBEB-4d85-83A7-7E5077AD11BA")]
- [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
- public interface IOutlookCOMM
- {
- ///
- /// Method which creates an EML file with passed information.
- ///
- /// The sender address of the mail
- /// The receiver address of the mail
- /// The subject of the mail to send
- /// The body of the mail to send
- /// The path of the attachment to add to the mail
- /// Set the X-Unsent property of the EML
- [DispId(1)] bool SaveEML(string from, string to, string cc, string bcc, string subject, string body, string attachmentPath, bool unsent, bool useOutlookAccount);
- }
-
- [Guid("0C216A19-E1B7-4b05-86D3-4C516BDDC041")]
- [ClassInterface(ClassInterfaceType.None)]
+ [ComVisible(true)]
+ [Guid("C79C6ABA-10F6-4DEA-B9AE-69DDB62C5881")]
+ [ClassInterface(ClassInterfaceType.AutoDual)]
[ProgId("MailUtilities")]
- public class MailUtilities:IOutlookCOMM
+ public class MailUtilities
{
///
/// Method which creates an EML file with passed information.
///
/// The sender address of the mail
/// The receiver address of the mail
+ /// The CC address of the mail
+ /// The BCC address of the mail
/// The subject of the mail to send
/// The body of the mail to send
/// The path of the attachment to add to the mail
/// Set the X-Unsent property of the EML
+ /// If true uses the sender mail defined in Outlook otherwise uses from parameter
public bool SaveEML(string from, string to, string cc, string bcc, string subject, string body, string attachmentPath, bool unsent, bool useOutlookAccount)
{
string tempFolderPath = Path.Combine(Path.GetTempPath(), "OutlookCOMM");
diff --git a/OutlookCOMM.COM/OutlookCOMM.COM.csproj b/OutlookCOMM.COM/OutlookCOMM.COM.csproj
index 84fc316..cd058d9 100644
--- a/OutlookCOMM.COM/OutlookCOMM.COM.csproj
+++ b/OutlookCOMM.COM/OutlookCOMM.COM.csproj
@@ -43,6 +43,11 @@
+
+
+ Always
+
+