午夜91福利视频,午夜成人在线观看,午夜在线视频免费观看,午夜福利短视频,精品午夜成人免费视频APP

留言成功發送郵件通知管理員

留言發送郵件標簽

標簽:sendemail
   描述:留言成功發送郵件通知管理員
   功能:用于發送郵件通(tong)知管理員(yuan)有新的表單提交(jiao)


快速開始(復制即用)

微信原生版

let that = this;
let apikey_token = App.getApikeyToken();

wx.request({
    url: App.globalData.config.apiSendemailUrl,
    header: {
        'content-type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: {
        apikey_token: apikey_token,
        type: 'gbook_submit',
        typeid: typeid,
        aid: aid
    },
    success(res) {
        console.log(res.data);
    }
});

uni-app 版

let that = this;
let apikey_token = App.getApikeyToken();

uni.request({
    url: App.globalData.config.apiSendemailUrl,
    header: {
        'content-type': 'application/x-www-form-urlencoded'
    },
    method: 'POST',
    data: {
        apikey_token: apikey_token,
        type: 'gbook_submit',
        typeid: typeid,
        aid: aid
    },
    success(res) {
        console.log(res.data);
    }
});

全部參數

基礎參數

參數說明示例
apikey_token必填,一般使用 App.getApikeyToken() 獲取,與 setting.js 里的 apikey 配置同步App.getApikeyToken()
type必填,只有唯一值 "gbook_submit"type='gbook_submit'
typeid必填,對應的欄目IDtypeid=2
aid必填,對應的留言文檔IDaid=1


文檔最后更新時間:2026-01-13 16:23:19

文檔
目錄

深色
模式(shi)

切換
寬度(du)