Portal mail service "from" specification
Hello all,
I am using Portal mail service but if I do not specify te from field it did not work:
ISendMailService sendMailSvc = (ISendMailService) ResourceFactory.getInstance().getServiceFactory().getService(ISendMailService.SERVICE_ID);
ISendMailItem mailItem = sendMailSvc.createMailItem();
mailItem = sendMailSvc.createMailItem();
mailItem.setContent(content);
mailItem.setSubject(subject);
mailItem.setMimeType(type);
mailItem.setTo(to);
mailItem.setFrom("generic@hotmail.com");
sendMailSvc.sendMail(mailItem, ep5User);
By now I am using the same user registered inside portal for notifications but as I did not find a way to read this configuration I am fixing the email account inside my program and this is something I want to avoid.
Does anyone know if there is a way to read what is the email account specified in Portal for notification or if there is a way to ommit the specification of setFrom.
Regards,
Mauricio