I have just downloaded the MailPro plugin and am trying to use it to replace the mail functionality I have in the solution currently.
My problem is that I am having inconsistent results with declaring variables or parameters using the MailPro types. For example, the following declaration works absolutely fine:
- Code: Select all
/** @type {SMTPAccount} */
var account = plugins.MailPro.SMTPAccount("noreply");
But this one:
- Code: Select all
/** @type {MailMessage} */
var testMessage;
gives me a warning saying "The type MailMessage is deprecated" and hovering over it with the ALT key pressed gives no alternative as you would usually see and if I change the declaration to:
- Code: Select all
/** @type {plugins.MailPro.MailMessage} */
var testMesage;
I get a warning saying "Unknown type plugins.MailPro.MailMessage"
If I use the deprecated MailMessage type then I don't have access to any of the methods or properties that are listed under the MailMessage section in the developer
Does anyone have any sample code or documentation for the MailPro plugin that would get me going?
Thanks
Steve