Here is a vb .net plugin that I am using in order to retrieve email from my POP server. To install this just copy the dll file to your Homeseer folder and then restart HS. Once restarted go to the Interfaces setup and enable it. It will take care of prompting you to input your pop server, port and delimiter you want to use.
Here is a sample of how to use it:
The help info is below:
Enjoy!!
Here is a sample of how to use it:
PHP Code:
dim theMessages as string() = hs.GetPlugins("EMail Access").GetEmailMessages(EMAIL_USERNAME, EMAIL_PASSWORD)
PHP Code:
The following methods can be called in the EMail Access plugin:
name Method
No Parameters
Returns: the name of the plugin
eg: Dim theName As String = hs.GetPlugins("EMail Access").name
version Method
No Parameters
Returns: the version of the plugin
eg: Dim theVersion As String = hs.GetPlugins("EMail Access").version
GetEmailCount Method
Parameter #1: String theUser - The user id for the pop3 account
Parameter #2: String thePassword - The password for the user account
Returns: the current number of emails
eg: Dim emailCount As Integer = hs.GetPlugins("EMail Access").GetEmailCount("bmaslen","password")
GetEmailMessages Method
Parameter #1: String theUser - The user id for the pop3 account
Parameter #2: String thePassword - The password for the user account
Returns: a result String Array of email messages separated by the specified delimiter in the config file
The result string array consists of the following information:
Date/Time of email~!~From Recipient~!~To Recipient~!~CC Recipient~!~BCC Recipient~!~Subject~!~Received From Server~!~Body of Message
eg: Dim theEmailMessages As String() = hs.GetPlugins("EMail Access").GetEmailMessages("bmaslen","password")
Enjoy!!
Comment