email user name
user password(请勿在代码中使用明文密码,推荐通过系统参数加密配置)
email sender
email template name
the request input parameters.
Optional
smtpHost: stringemail SMTP server ip:port (optional)
import * as sys from 'sys';
function testSend() {
let map = {
"body":"email content",
"subject": "email subject",
"address": "email address",
"cc": "", //optional
"bcc": "" //optional
}
let password = sys.getParameter('your_sysparam_of_password');
sys.sendCustomEmail('user', password, '', '', map) // send without template
}
Send a custom email with specified sender and email server