I have the following problem in Corona SDK "setOtherMetaHeaders a nil value".
I think setOtherMetaHeaders is not defined in the App42-Lua-API emailService.
Can you help me?
Thanks!
German.
local App42API = require("App42-Lua-API.App42API")
local emailService = App42API:buildEmailService()
function email.sendEmailwithTemplate(emailId, sendTo, sendSubject, sendMsg, templateName)
local App42CallBack = {}
require("App42-Lua-API.EmailMIME")
local otherMetaHeaders = {}
otherMetaHeaders.template= templateName
emailService:setOtherMetaHeaders(otherMetaHeaders)
emailService:sendMail(sendTo,sendSubject, sendMsg, emailId, EmailMIME.PLAIN_TEXT_MIME_TYPE,App42CallBack)
function App42CallBack:onSuccess(object)
print("Email From is : " ..object:getFrom())
print("email To is : " ..object:getTo())
print("Subject is : " ..object:getSubject())
print("Message Body is : "..object:getBody())
end
function App42CallBack:onException(object)
print("Message is "..object:getAppErrorCode())
print("Message is "..object:getHttpErrorCode())
print("Message is "..object:getMessage())
print("Message is "..object:getDetails())
end
end