zoukankan      html  css  js  c++  java
  • AX 2009 发邮件

    if (EPCompanyParameters::find().epEmailInterfaceType == EPEmailInterfaceType::CDO)
         {
             SysEmailTable::sendMail(_emailId, _language, _emailAddr, _mappings, _attachmentFilename);
         }
         else
         {
             if (!message)
             {
                 // Message not found for this language.
                 message = SysEmailMessageTable::find(_emailId, table.DefaultLanguage);
             }
     
            messageBody = SysEmailMessage::stringExpand(message.Mail, _mappings);
     
            if (message)
             {
                 // BP Deviation Documented
                 // enable assert for COM interop
                 new InteropPermission(InteropKind::ComInterop).assert();
     
                sysINetMail = new SysINetMail();
                 text = new COMVariant();
                 ctrl = new COM();
                 // BP Deviation Documented
                 document = new COM(#HTMLDocumentClassName);
     
                htmlText = WebLet::weblets2Html4Help(messageBody, '');
     
                ctrl.attach(document.interface());
                 comWrite = new COMDispFunction(ctrl, 'write', COMDispContext::Method);
                 text.bStr(htmltext);
                 // BP Deviation Documented
                 document.open('');
                 // BP Deviation Documented
                 comWrite.call(text);
                 // BP Deviation Documented
                 body = document.body();
                 if (body)
                     // BP Deviation Documented
                     messageBody = body.outerText();
                 else
                     messageBody = '';
                 // BP Deviation Documented
                 document.close();
     
                sysINetMail.sendMailAttach(_emailAddr,'',message.Subject,messageBody,false,_attachmentFilename);
     
  • 相关阅读:
    什么是字典序算法?
    安装使用zookeeper
    用最快速度将0*10范围内的数进行排序
    自定义schema 流程
    dubbo原理
    jvm 线上命令
    如何实现抢红包算法?
    GC Root 对象有哪些
    Jquery动态绑定事件处理函数 bind / on / delegate
    找出数组中的最小值(es5/es6)
  • 原文地址:https://www.cnblogs.com/Footprints/p/3452929.html
Copyright © 2011-2022 走看看