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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.09.2018, 21:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
alirazazaidi: Method ‘send’ in COM object of class ‘CDO.Message’ returned error and lesson learned Dynamics Ax 2012 R3.
Источник: https://www.tech.alirazazaidi.com/me...cs-ax-2012-r3/
==============

Very interestingscenario we faced in one customization. Requirement was very simple anddeveloper used very code to send Email.

Usually testing willbe done on dev box which has both AOS and client installed on same machine. Noerror occurred and code shipped to production. But when we deploy the code onproduction server and test the email sent functionality we got following error.



Method ‘send’ in COM object of class ‘CDO.Message’ returned error code 0x8004020F () which means: .

After trouble shootwe found that when we run the AX client from another machine pointing to AOSthis error occurred. There is some network security issue which did not accessrights to SMTP server while running code from Client.

So what is solution.Then we explore how Ax send email. What is out of the box solution.

We found that in outof the box functionality, AX did not send email immediately,  Instead, they stored required information insome tables and then Batch sent emails on Server.

So We changed ourdesign and new code just inject information into out of the box tables andemails goes with out of box batch job. Only attachment part was little bittricky.

Recommendation andlesson learned that, instead calling Smtp server directly on code, we have touse out of the box functionality and just integrate it.

Email sending to customer/vendor using built-in functionality in ax 2012http://www.schweda.net/blog_ax.php?b...;vtid=YXgzMA==

Источник: https://www.tech.alirazazaidi.com/me...cs-ax-2012-r3/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Старый 17.09.2018, 11:49   #2  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5788 (200) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
Цитата:
Сообщение от Blog bot Посмотреть сообщение
There is some network security issue which did not access rights to SMTP server while running code from Client.
Весьма вероятно, люди не в курсе, что настраивать пароль для SMTP-сервера надо на каждом АОСе, через который предполагается отправлять почту
Цитата:
Сообщение от Blog bot Посмотреть сообщение
We found that in outof the box functionality, AX did not send email immediately,  Instead, they stored required information insome tables and then Batch sent emails on Server.
Recommendation andlesson learned that, instead calling Smtp server directly on code, we have touse out of the box functionality and just integrate it.
О, сколько нам открытий чудных...
 

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

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

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

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

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