Code: Select all
var pCode = "rptXYZ";
var pTo = "";
var pFrom = "admin@domain.com";
var pSubject = "New invoice";
var pMessage = "Attached is ....";
var pFilename = "invoice.pdf";
var pResponse = "";
var pType = "PDF";
emailIt(pCode,pTo,pFrom,pSubject,pMessage,pFilename,pResponse,pType);
I've tryed also setting up a gmail account, with the same result.
I've tryed to pass PDF or HTML in pType parameter, change yes/no SSL in Setup>Email settings, setting up a gmail account, getting the same result.
Reading the wiki http://wiki.nubuilder.com/tiki-index.ph ... nse_pType_ something is not clear or can be confusing:
pCode parameter in emailIt() function is the activity code (ex: rptXYZ) or recordID in zzsys_activity table (ex: 14ffbf0ca...)? What is pRecordID referred to?in wiki you wrote:emailIt(pCode,pTo,pFrom,pSubject,pMessage,pFilename,pResponse,pType)
This will email a Report with the same activity code as pCode.
pReportID cannot be left blank, this is code of the report you wish to email.

However, also replacing activity-code with record-id the result is the same.

Did I forget something?