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, напишите личное сообщение администратору.
 

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

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

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

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

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