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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 26.11.2004, 11:48   #1  
paucer is offline
paucer
Участник
 
24 / 10 (1) +
Регистрация: 11.11.2003
Адрес: Kaunas
? how to send an email?
i need to send an email from my Entrprise portal. How to do that? are there any examples in axapta?
thanks in advance
Старый 26.11.2004, 13:53   #3  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 645 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
Re: how to send an email?
Цитата:
Изначально опубликовано paucer
i need to send an email from my Entrprise portal.
А по какому событию?
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me
Старый 26.11.2004, 14:27   #4  
paucer is offline
paucer
Участник
 
24 / 10 (1) +
Регистрация: 11.11.2003
Адрес: Kaunas
Re: Re: how to send an email?
Цитата:
Изначально опубликовано Maxim Gorbunov
А по какому событию?
When real field value is modified in grid.
In this case i would put mail send code in datasorce's field's modified() method.
Старый 26.11.2004, 15:47   #5  
max_woody_ru is offline
max_woody_ru
Участник
 
61 / 11 (1) +
Регистрация: 27.10.2004
Адрес: Москва
А можно ли как-нибудь проверить статус операции? Ни quickSend, ни sendMail ничего не возвращают... При неверных настройках почты просто выскакивает сообщение об ошибке. Хотелось бы его подавить и обрабатывать ситуацию вручную
Старый 26.11.2004, 16:29   #6  
maxsmirnov is offline
maxsmirnov
экс-модератор
 
268 / 25 (1) +++
Регистрация: 08.07.2003
Адрес: Москва
При неверных настройках почты просто выскакивает сообщение об ошибке

try/catch
убрать само сообщение - infolog.cut()
Старый 26.11.2004, 17:19   #7  
paucer is offline
paucer
Участник
 
24 / 10 (1) +
Регистрация: 11.11.2003
Адрес: Kaunas
tips...
i downloaded Dndas Mailer Cotrol and activated SMTP service on my PC, but I get else branch in this pieace of code:

PHP код:
    sysMailer mailer = new SysMailer();       
 ;
if (
mailer.validateAddress("my@address.com") == 6)          
  
info("validation operation failed");     
else          
  
mailer.quickSend("our@address.com""my@address.com""subj""bod");     
mailer.finalize(); 
let say that "my@address.com" is a valid addres. so i suspect, that my smtp servce produces an error.
maybe you have any tips how configure correct smpt or to test if my smtp works fine.

Paul...
Старый 26.11.2004, 17:31   #8  
paucer is offline
paucer
Участник
 
24 / 10 (1) +
Регистрация: 11.11.2003
Адрес: Kaunas
my appologies, i wanted to write:

but I can't get in "else" branch in this pieace of code:
Старый 26.11.2004, 18:24   #9  
Maxim Gorbunov is offline
Maxim Gorbunov
Administrator
Соотечественники
Лучший по профессии 2009
 
2,483 / 645 (26) +++++++
Регистрация: 27.11.2001
Адрес: Dubai, UAE
А DNS-сервер указывать пробовали.

Цитата:
IMPORTANT: If you do not specify a DNS server before calling this method then it will take a substantial amount of time to perform the validation. Make sure you use a DNS server!
и
Цитата:
ValidateAddress uses the DNSServers collections to perform mail exchange lookups, so it is highly recommended that you add multiple DNS servers to this collection. If no DNS servers have been added to the DNSServers collection then the following default servers will be tried in their respective order: "A.ROOT-SERVERS.NET", "B.ROOT-SERVERS.NET" and "C.ROOT-SERVERS.NET". If these servers are not available then the method call will fail and return an error code.
__________________
Not registered yet? Register here!
Have comments, questions, suggestions or anything else regarding our web site? Don't hesitate, send them to me
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Dynamics Mobile: How to send a requestdocument without having a tasklet in a wizard Blog bot DAX Blogs 0 28.05.2008 16:05
Send alerts to online users in AX 4.0 Blog bot DAX Blogs 0 09.04.2008 00:05
Inside Dynamics AX 4.0: The Send Framework Blog bot DAX Blogs 0 05.10.2007 23:31
DynamicsTech: How to Setup Alerts in Dynamics Ax 4.0 Blog bot DAX Blogs 0 12.04.2007 11:50
how to receive pop3 email in Axapta ? Haroldas DAX: Программирование 8 01.11.2005 16:41

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

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

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