Sending an email from Axapta

All:

I am new to Axapta/X++, so if this question is stupid, I apologize in advance.

I want to send an email to a certain email address whenever an Exception::ERROR comes across a certain routine in my Axapta application. Anyone know how to do such a thing?

Does a COM object or class in the AOT exist that allows this type of thing to be done?

I know how to do this type of thing easy enough in C/C++, but have no clue where to even start in Axapta/X++.

Any comments/suggestions would be greatly apprecaited.

Thanks,
Skender

You can add your code of sending the e-mail to the following method:

\Classes\Info\add

It is executed every time an exception is shown to the user.

But you will have to look around this method - it’s easy to wedd out the info() and warning() messages if you don’t need them.

If you do not know how to send the e-mail itself either, please post here and I will give you an explanation.

But first try searching - I think this topic has been raised before

Good luck!

Hi,

A while ago I had posted an example of sending email from Ax in my blog -
http://harish-m.livejournal.com/

Hope this helps.

Hi,

I have some codes on my BLOG on how to send emails

http://daxguy.blogspot.com/