前端API开放接口—邮件

举报
云会议运营喵大人 发表于 2020/02/17 13:48:57 2020/02/17
【摘要】 HWH5.writeMail支持版本>=10.0.2调起WeLink的发邮件界面,支持传递发件人及正文请求参数参数类型必填说明extra_emailArray是收件人extra_subjectString是主题extra_textString是内容action_send_oneboxlinks #fileExternalLinkString是附件链接action_send_oneboxlin...

HWH5.writeMail

支持版本>=10.0.2

调起WeLink的发邮件界面,支持传递发件人及正文

请求参数

参数类型必填说明
extra_emailArray收件人
extra_subjectString主题
extra_textString内容
action_send_oneboxlinks #fileExternalLinkString附件链接
action_send_oneboxlinks #fileIDString附件ID
action_send_oneboxlinks #fileNameString附件名称
action_send_oneboxlinks #fileSizeNumber附件大小
action_send_oneboxlinks #ownerIDString附件所有人ID
action_send_oneboxlinks #typeString附件格式
action_send_multipleArray多邮件附件
action_send_oneboxlinksArray多个onebox附件
extra_ccArray抄送
extra_bccArray密送

返回结果

调起发送邮件页面。

请求示例

  • ES6版本

    const emailParams = {  'extra_email': ['aaaaaaa@xxx.com', 'bbbb@xxx.com'],  'extra_cc': ['cccc@xxx.com', 'dddd@xxx.com'],  'extra_bcc': ['eeee@xxx.com', 'ffff@xxx.com'],  'extra_subject': '打开邮件UI界面',  'extra_text': '测试WeLink打开发送邮件见面~~祝大家工作愉快',  'action_send_multiple': ['download/mdm_text.xlsx'],  'action_send_oneboxlinks': [
        {
          fileExternalLink: 'http://www.aaa.com/bbb/aaaa',
          fileID: '540894',
          fileName: '测试文件.pdf',
          fileSize: 179891,
          ownerID: '16',
          type: 'pdf'
        }
      ]
    };
    
    HWH5.writeMail(JSON.stringify(emailParams)).then(_result => {  console.log(_result);
    }).catch(error => {  console.log('打开邮件页面发生异常', error);
    });
  • ES5版本

    var emailParams = {  'extra_email': ['aaaaaaa@xxx.com', 'bbbb@xxx.com'],  'extra_cc': ['cccc@xxx.com', 'dddd@xxx.com'],  'extra_bcc': ['eeee@xxx.com', 'ffff@xxx.com'],  'extra_subject': '打开邮件UI界面',  'extra_text': '测试WeLink打开发送邮件界面~~祝大家工作愉快',  'action_send_multiple': ['download/mdm_text.xlsx'],  'action_send_oneboxlinks': [
        {
          fileExternalLink: 'http://www.aaa.com/bbb/aaaa',
          fileID: '540894',
          fileName: '测试文件.pdf',
          fileSize: 179891,
          ownerID: '16',
          type: 'pdf'
        }
      ]
    };
    HWH5.writeMail(JSON.stringify(emailParams)).then(function (_result) {  console.log(_result);
    }).catch(function (error) {  console.log('打开邮件页面发生异常', error);
    });


【版权声明】本文为华为云社区用户原创内容,未经允许不得转载,如需转载请自行联系原作者进行授权。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。