AXForum  
Вернуться   AXForum > Microsoft Dynamics NAV > NAV: Программирование
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.08.2004, 18:01   #1  
mazzy is offline
mazzy
Участник
Аватар для mazzy
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
29,472 / 4494 (208) ++++++++++
Регистрация: 29.11.2001
Адрес: Москва
Записей в блоге: 10
The SMTP Mail component was developed by Stephan Stapel and was submitted to mibuso on the 11 of October 2003...thank you Stephan, the component works like a charm.

I had one problem with the component: The error trapping is very difficult, since the component does not return an error code, but instead, raises an exception when an error occurs. That makes it very difficult to use the component in an unmanned environment, like when using the component in an email dispatcher.

I have changed the SmtpMailXControl1_TLB.pas file to perform a "TRY EXCEPT ON EXCEPTION" on every step in the process of sending an email. By doing this, you can do proper exception handling from Navision, since a result code of 0 is returned with the SMTP error number, instead of the component raising it's own exception.

Once again, I do not take credit for writing this component, I merely made a change to it...but that is the purpose of this site, right? To live, and let live!

Источник.
http://mibuso.com/dlinfo.asp?FileID=366
__________________
полезное на axForum, github, vk, coub.
Старый 09.08.2004, 18:30   #2  
Dzemon is offline
Dzemon
Moderator
 
1,247 / 12 (3) ++
Регистрация: 09.09.2004
Наверное он не ошибся ;-)
 

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 19:10.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.