Email Object

From MobileX for SageCRM
Revision as of 09:14, 3 August 2016 by Crmtogether (talk | contribs) (Created page with " var emailSettings = { to: jsonObject[0].pers_emailaddress, From: "uname@server.com", subject: "test subject", body: emailBody, host:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  var emailSettings = {
       to: jsonObject[0].pers_emailaddress,
       From: "uname@server.com",
       subject: "test subject",
       body: emailBody,
       host: "smtp.server.com",
       port: "123",
       UserName: "uname@server.com",
       Password: "password",
       pIsBodyHtml: true,
       pEnableSsl: true
   }
   //Response.Write('alert(\'emailBody='+emailSettings.subject+'\');');
   email.SendEmail(emailSettings.to, emailSettings.From, emailSettings.subject, emailSettings.body, emailSettings.host, emailSettings.port, emailSettings.UserName, emailSettings.Password, emailSettings.pIsBodyHtml, emailSettings.pEnableSsl);


GetFileContents

var emailBody = email.GetFileContents("C:\\Program Files (x86)\\Sage\\CRM\\CRMDemo\\WWWRoot\\CustomPages\\SageCRMWS\\js\\plugins\\CRMTogether\\server\\email.txt");