Steeve
2010-03-01 18:44:01 UTC
Hi,
Anyone tried using the priority on SysMailer class? MSDN says
(http://msdn.microsoft.com/en-us/library/bb314716.aspx) that you can set
value from 1 to 5 with 1 being the highest and 5 lowest priority.
With a sample code (see below) I tried all 5 priority setting plus 0. 0, 1
and 2 send the mail ok but can't see a change in priority, in Outlook
atleast. With 3, 4 of 5 it crash with message : "Method 'update' in COM
object of class 'Fields' returned error code 0x800A0EA5 (<unknown>) which
means: Fields update failed. For more informations, see Status property of
field objects."
All the base code I found in Ax only uses priority 0, 1 or 2 so there must
be something wrong with 3, 4 and 5. And why priority 1 (highest) not showing
a "!" in outlook.
SysMailer mailer;
InteropPermission permission = new
InteropPermission(InteropKind::ComInterop);
;
permission.assert();
mailer = new SysMailer();
mailer.priority(1);
mailer.quickSend("***@boa-franc.com", "***@boa-franc.com",
"sujet", "body");
Thanks for any info.
Anyone tried using the priority on SysMailer class? MSDN says
(http://msdn.microsoft.com/en-us/library/bb314716.aspx) that you can set
value from 1 to 5 with 1 being the highest and 5 lowest priority.
With a sample code (see below) I tried all 5 priority setting plus 0. 0, 1
and 2 send the mail ok but can't see a change in priority, in Outlook
atleast. With 3, 4 of 5 it crash with message : "Method 'update' in COM
object of class 'Fields' returned error code 0x800A0EA5 (<unknown>) which
means: Fields update failed. For more informations, see Status property of
field objects."
All the base code I found in Ax only uses priority 0, 1 or 2 so there must
be something wrong with 3, 4 and 5. And why priority 1 (highest) not showing
a "!" in outlook.
SysMailer mailer;
InteropPermission permission = new
InteropPermission(InteropKind::ComInterop);
;
permission.assert();
mailer = new SysMailer();
mailer.priority(1);
mailer.quickSend("***@boa-franc.com", "***@boa-franc.com",
"sujet", "body");
Thanks for any info.