# Outlook Automation and "unexpected feedback"

**URL:** <https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948>\
**Category:** Developers Forum\
**Created:** [May 9, 2005, 10:47am UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948 "2005-05-09T10:47:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pb1](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pb1](https://www.dynamicsuser.net/u/pb1)\
**Post date:** [May 9, 2005, 10:47am UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948/1 "2005-05-09T10:47:17Z")

</div>

Hi, I’m not sure if this is the correct forum to post the following question [:I] Is there a way to check the outlook client availability from Navision, to prevent C/AL errors when using outlook automation? I’m using a ‘selfmade’ reportscheduler that has an e-mail option. The scheduler halts everytime the mailserver is down when needed by automation. Kind regards, Peter.

---

<div class="post-metadata">

**Author:** ![stryk](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stryk](https://www.dynamicsuser.net/u/stryk)\
**Post date:** [May 9, 2005, 11:12am UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948/2 "2005-05-09T11:12:40Z")

</div>

Well, do you have to use Outlook? In cases like yours I would prefer to use SMTP; therefore I recommend to use **JMail** from Dimac ([http://www.dimac.net/](http://www.dimac.net/) Freeware available) which is not running a client and could be used as Automation …

---

<div class="post-metadata">

**Author:** ![pb1](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pb1](https://www.dynamicsuser.net/u/pb1)\
**Post date:** [May 9, 2005, 11:38am UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948/3 "2005-05-09T11:38:57Z")

</div>

Thanks Joerg, I’m not familiar with Jmail, but I will check it out. Still I’m wondering; Does Jmail handle posted mail, even when the connection to I-net is momentarily lost? If not, do I not have the same issue with another client? Sorry, I just realised that POP3 is no option; we are obliged to follow a policy on this [:(] Peter.

---

<div class="post-metadata">

**Author:** ![stryk](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@stryk](https://www.dynamicsuser.net/u/stryk)\
**Post date:** [May 9, 2005, 11:58am UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948/4 "2005-05-09T11:58:39Z")

</div>

JMail is not a eMail client, only a control - in our case Automation - to be included to any application designed with VB, C++, etc. … or NAVISION. Of course, it’s features are more limited copared to Outlook, but sometimes you may wish just to have an simple, easy to use and relyable eMail tool to send messages from NAVISION. So, if the SMTP server is down, JMAil is not doing a “pooling” or something … Just check it out!

---

<div class="post-metadata">

**Author:** ![pb1](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pb1](https://www.dynamicsuser.net/u/pb1)\
**Post date:** [May 11, 2005, 1:21pm UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948/5 "2005-05-11T13:21:38Z")

</div>

I checked out Jmail. I understand how to use the ocx controls, but the issue remains. When Jmail is not able to post (for wathever reasons) it also returns a C/AL error.

---

<div class="post-metadata">

**Author:** ![ajhvdb](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@ajhvdb](https://www.dynamicsuser.net/u/ajhvdb)\
**Post date:** [May 11, 2005, 8:54pm UTC](https://www.dynamicsuser.net/t/outlook-automation-and-unexpected-feedback/9948/6 "2005-05-11T20:54:33Z")

</div>

With Office automation you have the same problem when an error is returned. I think you need to create a ocx which does the logic and catch all errors. You could also create a parameter or script file and run an external program.
