Discussion:
email with confirm read
(too old to reply)
Caterina
2010-02-05 09:39:01 UTC
Permalink
In axapta 3 sysmailer class had 3 important methods:
-confirm read
-load body from file
-return receipt.
In axapta 2009 they disapper... why?
How can I create a mail from axapta whith confirm read?

regards

Caterina
Walter Vimercati
2011-06-16 12:49:21 UTC
Permalink
HI, it's quite simple.

Go to SysMailer class and add this method:

// return receipt on delivery of message
void deliveryNotification(boolean returnReceipt=false)
{
InteropPermission permission = new InteropPermission(InteropKind::ComInterop);

permission.assert();

if (!prmisdefault(returnReceipt))
//BP Deviation Documented
_COM.DSNOptions(#cdoDSNSuccessFailOrDelay);
else
//BP Deviation Documented
_COM.DSNOptions(#cdoDSNDefault);

}

then go to SysEmailDistributor class on processEmail method and add this line:

mailer.deliveryNotification(true);

where the mailer object is build.

bye
Post by Caterina
-confirm read
-load body from file
-return receipt.
In axapta 2009 they disapper... why?
How can I create a mail from axapta whith confirm read?
regards
Caterina
Loading...